Facing issue of NSUserDefaults data got cleared on update new version from app store. so all data of user got cleared and user have to login again.
I was having app in store with version 1.1.3 and then we have uploaded new version to store with version 1.1.4
but when user download app from store their data was cleared from UserDefaults.so this is big issue in update. need to help. is that apple updated any process on update.
Question
How Apple change version build in device when we update app from app store.
is it uninstall old build and install new build ?
Or it is install new version on old version ?
Should UserDefaults.standard will delete on update ?
Updating Provisioning profile from manual to automatically cause issue on UserDefaults.standard Like UserDefaults got cleared and uuid will change ?
Do we have anythings that we can identify specific user as uniq user ?
What is better solution to store login data into SQLite store or in UserDefaults as model ?
Will appreciate for your help. this is very big issue and login again on update will make app user more effect
Post
Replies
Boosts
Views
Activity
Connection error from Optional("com.apple.FamilyControlsAgent"): Couldn’t communicate with a helper application.
We have Created a Shield with Primary, We want to trigger some Action on this Button. But don't get any response.
After successfully authorizing a child device via AuthorizationCenter.shared.requestAuthorization, DeviceActivityCenter.startMonitoring always results in an MonitoringError.unauthorized error.
#ScreenTimeAPI #ManageSeeting
Is there any specific character length that we need to implement as a bundle ID?
In my recent project, I've been implementing a specific bundle identifier, but it doesn't support all features. In addition to this, we try another bundle identifier, they support all functionality.
we are getting error in selection.
I am facing this issue when i start monitoring
error The operation couldn’t be completed. (DeviceActivity.DeviceActivityCenter.MonitoringError error 0.)
source code
in didFinishLaunchingWithOptions
center.requestAuthorization{ result in
print(result)
switch result {
case .success():
print("success")
switch self.center.authorizationStatus {
case .approved:
print("approved")
let center = DeviceActivityCenter()
do {
try center.startMonitoring(.daily, during: self.schedule)
} catch {
print("error (error.localizedDescription)")
}
case .denied:
print("denied")
case .notDetermined:
print("not determined")
}
case .failure(let error):
print(error.localizedDescription)
}
}