Post

Replies

Boosts

Views

Activity

Comment on Lost data in UserDefaults
@eskimo: I should have just replied on my previous comment on a thread. We do not use Data Protection Entitlement. Now we do not save any of the user relevant data in user defaults, we have coredata for that. However, we do save preferences, like bunch of booleans, that decides the state of the application or which vc's to show, which to hide, or to show specific data on the vc's itself, etc. These preferences are getting lost. Sometimes partially, sometimes completely on app relaunch. iOS v16.4
Topic: App & System Services SubTopic: General Tags:
May ’23
Comment on Lost data in UserDefaults
@davenorfleet I just learned today that the devices were on 15.2 instead of 15.3.1 which I was told earlier. Hopefully, they won't see the issue again on 15.3.1. It was happening on iPhone 12 pros. It's still a guessing game as we are not able to get a straight answer from Apple. We are now thinking of having a backup of User Defaults saved in a file which possibly can be applied as a restore option if this ever happens again. Our apps are matured ones that rely heavily on User Defaults. As we are not able to reproduce this, I am not even sure what all is wiped, is it just user defaults, is it also application support directory, its all a guessing game.
Topic: App & System Services SubTopic: General Tags:
Mar ’22