Reputation: 57
I cannot find any information on topic: what is happening when I release new version of iOS application on iTunes? Is older version on device completely replaced? Or there is a persistence of Documents folder? Is it possible to make update to be like a "clean" installation?
Upvotes: 0
Views: 748
Reputation: 8576
When you release an update to your iOS app and the user installs it, the system does not wipe out any data from within the app.
This means that data in a given user's Documents directory, NSUserDefaults
, as well as the keychain will persist between app updates.
A couple of important notes, however:
In short, if you want data cleaned out of your app on each update (not sure why you would), you'll have to do so manually.
Upvotes: 4
Reputation: 7876
Your Documents folder will not be cleaned.
If you want to clear it, make sure to do it programmatically in your new release.
The Documents folder is deleted only when the user deletes the app.
Upvotes: 1