Hi guys, we need to keep downloaded books on device even if low space. Just wonder if someone did already implement this, please, - use of "do not back up" attribute on downloaded books. Or is there some other code in place that prevents deletion of books? Thank you!
Data that can be downloaded again or regenerated should be stored in the /Library/Caches directory. Examples of files you should put in the Caches directory include database cache files and downloadable content, such as that used by magazine, newspaper, and map applications.
Use the "do not back up" attribute for specifying files that should remain on device, even in low storage situations. Use this attribute with data that can be recreated but needs to persist even in low storage situations for proper functioning of your app or because customers expect it to be available during offline use. This attribute works on marked files regardless of what directory they are in, including the Documents directory. These files will not be purged and will not be included in the user's iCloud or iTunes backup.
Hi guys, we need to keep downloaded books on device even if low space. Just wonder if someone did already implement this, please, - use of "do not back up" attribute on downloaded books. Or is there some other code in place that prevents deletion of books? Thank you!
In iOS in the event of low space system will delete the content that is placed inside Library/Caches: https://developer.apple.com/icloud/documentation/data-storage/index.html