Is the ApplicationSupportDirectory is overwritten on app update ?

You must Login before you can answer or comment on any questions.

Hi,

I use the filesystem ApplicationSupportDirectory in my app for storing lots of files. Is this directory going to be overwritten when i update my app on app store ?

If files in this directory are not saved, do i have to set the backup flag to false on each call for a file in the ApplicationDataDirectory in order to avoid itunes backup ?

Thanks

1 Answer

Accepted Answer

I think this answers the question?

http://docs.appcelerator.com/titanium/2.1/index.html#!/api/Titanium.Filesystem-property-applicationSupportDirectory

Files Saved During App Updates

When a user downloads an app update, iTunes installs the update in a new app directory. It then moves the user’s data files from the old installation over to the new app 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.

http://developer.apple.com/library/ios/#DOCUMENTATION/iPhone/Conceptual/iPhoneOSProgrammingGuide/PerformanceTuning/PerformanceTuning.html

Your Answer

Think you can help? Login to answer this question!