I'm developing my first iphone app that allow users to take pictures and store them & other meta data in the App's Documents folder.
If in the future I provide version updates to users, does it affect the user-created data? If it does, then what is the best strategy to preserve the data?
Thanks a lot
Open the App Store. From the menu bar at the top of the screen, choose App Store > Preferences. Select or deselect Automatic Updates.
Tap Settings > General > Profiles or Profiles & Device Management. Under the "Enterprise App" heading, you see a profile for the developer. Tap the name of the developer profile under the Enterprise App heading to establish trust for this developer. Then you see a prompt to confirm your choice.
No, any data saved in the user Documents folder will remain intact during and after an update.
EDIT:
Here is the official link: iOS Application Programming Guide.
Files Saved During Application Updates
When a user downloads an application update, iTunes installs the update in a new application directory. It then moves the user’s data files from the old installation over to the new application directory before deleting the old installation. Files in the following directories are guaranteed to be preserved during the update process:
< Application_Home > / Documents
< Application_Home > / Library
Although files in other user directories may also be moved over, you should not rely on them being present after an update.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With