user1553381
user1553381

Reputation: 415

Apps must follow the iOS Data Storage Guidelines or they will be rejected in app that contains .sqlite3

I created an ebook app and my app contains a lot of images and pdf files

I was putting the downloaded images in /Library/Caches and putting the pdf files and .sqlite3 file in /Documents

now my app is rejected and this is the reason

2.23 Apps must follow the iOS Data Storage Guidelines or they will be rejected

Is this means that I have to move all what in /Documents to /Library/Caches? If I let the .sqlite3 file in /Documents, will the app reject again?

Thanks in advance.

Upvotes: 0

Views: 2993

Answers (2)

Cocoanetics
Cocoanetics

Reputation: 8245

2.23 means that you should only put stuff into /Documents that cannot be re-downloaded from the internet. i.e. user-generated files. Everything that CAN be re-downloaded should be in Library/Caches.

The reason for this rule is that /Documents gets backed up and users don't like if you waste their precious iClould backup space.

Upvotes: 2

omz
omz

Reputation: 53561

You don't necessarily have to put the downloaded PDFs and databases into the Caches directory. An alternative would be to use the "do not backup" attribute, as described here: Technical Q&A QA1719 - How do I prevent files from being backed up to iCloud and iTunes?.

Upvotes: 1

Related Questions