-
7 Jan 2013 6:39 AM #1
Unanswered: Sencha Touch iOS app rejected because of "Data Storage Guidelines"
Unanswered: Sencha Touch iOS app rejected because of "Data Storage Guidelines"
The app in wich i´m working has been rejected with the following text:
I am only saving data in localStorage (via Sencha API) for offline viewing of some content. Can it be the problem? How can i solve it? Is there other files that a native sencha app saves that can cause the issue?We found that your app does not follow the iOS Data Storage Guidelines, which is required per the App Store Review Guidelines.
In particular, we found that on launch and/or content download, your app stores non-user generated data. 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., should be 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.
I am using sencha touch 2.1 (without phonegap). min os: 4,3.
-
7 Jan 2013 8:05 AM #2
Maybe iCloud is enabled
Maybe iCloud is enabled
Sounds to me like these are all related to iCloud. Is the iCloud enabled for the App ID that you are submitting to Apple (check this in the provisioning portal). It could be because you have that enabled. Unless you need to use iCloud I would leave it disabled for any app that I submit to Apple.
-
8 Jan 2013 12:49 AM #3
Thanks azamatoak, but the app is not registered to use iCloud.
The problem seems Ext.data.proxy.LocalStorage writes his data into an area in the IOS file-sytem, who will be part of a IOS device backup. But we must store the data to a more volatile storage who may be deleted e.g. when restarting the device, but not if the app has been terminated.
Question is, where to store the data to be cached.
Does anybody have some experience how to solve this?
-
8 Jan 2013 6:37 AM #4
I use LocalStorage and don't have this problem but using PhoneGap. A few weeks ago I thought I read that PhoneGap somehow changes where LocalStorage is written in iOS. I'm not positive but you might want to research this.
-
10 Jan 2013 6:00 AM #5
I checked that in iOS 6 localstorage is in Library/Caches folder, but i found it also in Documents, with the same size but hidden! Does anyone know why?


Reply With Quote