That worked with some other tweaks. I had to use urlsession dataTask with URLRequest and completion Handler instead of using the delegate methods of the "NSURLSessionDelegate, NSURLSessionDataDelegate, NSURLSessionTaskDelegate" for didReceiveResponse, didReceiveData and didCompleteWithError.
The only delegate methods I am using is didReceiveChallenge
Post
Replies
Boosts
Views
Activity
I am also looking for this solution. Were you able to find a way?
Finally I have figured this out through UserDefaults.standard. Its bit tricky
This is my code
if let userDefaultDict = UserDefaults.standard.dictionaryRepresentation() as? [String: Any]{
guard let <<yourStrVariable>> = userDefaultDict[<<your Key for the value >>] as? String
else{
//Throw error
}
}
else{
//Throw Error
}
Hello,
We are also in need of such an app for our in house MacOS app which has a LaunchAgent. Like you said, I have seen the uninstaller app in enterprise apps.
Were you able to find the solution?
Thanks,
Sarayoodharan.K
Hello,
Did you find the solution for this? I have the same problem.