Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iphone: preserve user data against app update

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

like image 416
g8minhquan Avatar asked Jan 24 '11 03:01

g8minhquan


People also ask

How do you ignore app updates on iPhone?

Open the App Store. From the menu bar at the top of the screen, choose App Store > Preferences. Select or deselect Automatic Updates.

How do you trust integrity on iPhone apps?

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.


1 Answers

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.

like image 142
WrightsCS Avatar answered Oct 26 '22 22:10

WrightsCS