0





64
1

I am building an app and I am considering saving/writing some data to the applications Documents/ directory. I would like the data to persist across instances, meaning if a user kills the current instance of my application, whatever data I wrote to the Documents/ directory should remain.

In general, what types of application data gets purged when you kill an instance of an application?

Question author Aybaybay | Source

0


1

No it would be removed only when your app is uninstalled. Moreover files in Documents/ and Application Support/ are backed up by default. You can exclude files from the backup by calling -[NSURL setResourceValue:forKey:error:] using the NSURLIsExcludedFromBackupKey key. Any file that can be re-created or downloaded must be excluded from the backup. This is particularly important for large media files. If your application downloads video or audio files, make sure they are not included in the backup.

Further reading link

Hope this helps. Happy coding.

Answer author Md-ibrahim-hassan

Ask about this question here!