Post

Replies

Boosts

Views

Activity

Comment on Lost data in UserDefaults
I'm having the same problem. I have a flag that indicates if the app has been previously installed. That means that if a user deletes the app without logging out and reinstalls it, when the app starts the flag will have been cleared out and we can call logout, instead of persisting their session. The problem is that some users are being logged out because UserDefaults doesn't return the stored Bool. This is happening on different iOS versions, but mostly on 17.4.1
May ’24