DO NOT BACKUP ME for iOS

Previous topic - Next topic

ampos

My latest app, DOTS-N-LINES demo has been approved. Once it runs, it download images and save them in "platform(appdta)"

Also, the non-demo version was sent, but it as not been approved:

QuoteMar 15, 2012 10:22 AM. From Apple.

2.23

We found that your app does not follow the iOS Data Storage Guidelines, which is required per the App Store Review Guidelines.

To check how much data your app is storing:

- Install and launch your app - Go to Settings > iCloud > Storage & Backup > Manage Storage - If necessary, tap "Show all apps" - Check your app's storage

The iOS Data Storage Guidelines indicate that only content that the user creates using your app, e.g., documents, new files, edits, etc., may be stored in the /Documents directory - and backed up by iCloud.

Temporary files used by your app should only be stored in the /tmp directory; please remember to delete the files stored in this location when the user exits the app.

Data that can be recreated but must persist for proper functioning of your app - or because customers expect it to be available for offline use -should be marked with the "do not back up" attribute. For NSURL objects, add the NSURLIsExcludedFromBackupKey attribute to prevent the corresponding file from being backed up. For CFURLRef objects, use the corresponding kCFURLIsExcludedFromBackupKey attribute.

For more information, please see Technical Q&A 1719: How do I prevent files from being backed up to iCloud and iTunes?.

It is necessary to revise your app to meet the requirements of the iOS Data Storage Guidelines.

For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. Please be sure to prepare any symbolicated crash logs, screenshots, or steps to reproduce the issues for when the DTS engineer follows up. For information on how to symbolicate and read a crash log, please see Tech Note TN2151 Understanding and Analyzing iPhone OS Application Crash Reports.

The links are

https://developer.apple.com/icloud/documentation/data-storage/

https://developer.apple.com/library/ios/#qa/qa1719/_index.html

https://developer.apple.com/library/ios/#technotes/tn2008/tn2151.html

Any idea?



spacefractal

#1
I asume its got rejected due its downloads its images to the DOCUMENT folder (as PLATFORM("AppData" Info does)?

I gonna think they should been downloaded to "Library/Caches" insteead?

I guess you can try to modify the returned string from AppData to remove the last folder and then add "Library/Caches" to get the folder of it, and then save the downloaded content. I guess its a new guideline after IOS5 and iCloud.

So in the final, I dont think "do not back up" is required at all, other than you downloaded images to the wrong folder....

Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Hark0

hmm very interesting post...

I think the "easy" fix are to include all image files on IPA...

But...

Best solution for solve Apple requeriments?
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

ampos

The Apple guidelines are:

QuoteData Handling Categories

The com.apple.MobileBackup file attribute introduced in iOS 5.0.1 is the "do not back up" attribute used to specify which files or folders should not be backed up, regardless of their location in the file system. By using this new attribute and placing files in specific directories, files can be described as one of four different data categories.

Critical Data

This is user-created data or other data that cannot be recreated. It should be placed in the <Application_Home>/Documents directory and should not be marked with the "do not backup" attribute. Critical data will persist in low-storage situations and will be backed up by iTunes or iCloud.

Cached Data

This is data that can be downloaded again or regenerated, and the absence of this data will not prevent your app from functioning as the user expects in offline situations. Cached data should be put in the <Application_Home>/Library/Caches directory. Cached data may be purged in low storage situations, and is not backed up by iTunes or iCloud.

Temporary Data

This is short lived data that the app needs to write out to local storage for its internal operation, but that is not expected to persist for an extended period of time. Temporary data should be put in the <Application_Home>/tmp directory. Files in this directory may be cleaned up by the system. Files in this directory are not backed up by iTunes or iCloud. Temporary data files should be removed as soon as they are no longer needed to avoid using unnecessary storage space on the user's device.

Offline Data

This is data that can be downloaded or otherwise recreated, but that the user expects to be reliably available when offline. Offline data should be put in the <Application_Home>/Documents directory or in the <Application_Home>/Library/Private Documents directory (see QA1699 for details) and marked with the "do not backup" attribute. Data stored in either location will persist in low-storage situations and the "do not backup" attribute will prevent iTunes or iCloud backing up the data. Offline data files should be removed as soon as they are no longer needed to avoid using unnecessary storage space on the user's device.

Hark0

"marked with the "do not backup" attribute"

Hmmm

¿¿??

:blink:
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

spacefractal

I guess your images can been recreated by your app and hence they should not been downloaded to document folder directly. Instead they can been downloaded to cache folder instead, which is not backup by iCloud.

So me guess is more simply by just use the other folder, since app data folder point to document folder in ios.

Here you can use some string replace after getting the doc folder.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/