Tinku George
Tinku George

Reputation: 615

iPhone app got rejected due to data storage issue

My app was rejected due to data storage problems. After googling, I got these ideas. Please confirm my assumptions are correct or not.

  1. Store the SQLite db in the caches folder and set the "donotbackup" flag, which will stop the file being deleted by the cache clean system.

But what will happen to the db if I update the app to a newer version? Any chance to loss the db?

  1. Keep the cache files like images etc. in the Caches folder.

Do we need to clear the cache with our code or the device will clear it automatically?

Then I am storing all the data(including images) in the application's Sqlite db file. So should I implement iCloud in my application?

Upvotes: 0

Views: 331

Answers (1)

Moonkid
Moonkid

Reputation: 916

You must use "do not backup" attribute to files that you would to keep, other files place to cache folder. Cache folder will be automatically erased when application terminates.

Check this article

Developers forum

Apple documentation

Upvotes: 2

Related Questions