Prevent iCloud backup your downloadable content on iOS
Today, I got our company ebook application been rejected AGAIN.
Approving application is a process of really wasting of time, and you need to got result after an week, even don’t know if will pass or not, so let’s learn more experience from the failure.
The reason that this application been rejected is: Item 2.23 in the “Apple Store Review Guidelines” - Should not allow iCloud backup files which is not User generated.
Since it’s ebook application we will download ebook content from server which is called “downloadable” and “not user generated” content. So according to the “iOS Data Storage Guidelines”, we should put those files into “
Our ebook application was persisted files in “
Why the second submission been rejected is: because we set the “Deployment version target” to 4.3 which is not support one important feature “‘do not back up’ attribute” for files, that’s why my solution, which just set attribute for downloaded ebook files as “do not back up”, was rejected again.
Files won’t be backed up only when been placed into:
- the application bundle itself
- the caches directory
- temp directory
So finally we used one solution is:
- Set the “Deployment target version” to 5.1 above (5.0 or earlier not support applying file attribute.)
- Move the ebook downloading files into “
/Library/<Application Support|Custom Dir>" - Apply the “com.apple.MobileBackup” extended attribute to the download folder.
Some references: