1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    9
    Vote Rating
    0
    Amaya is on a distinguished road

      0  

    Default 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:

    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 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?

    I am using sencha touch 2.1 (without phonegap). min os: 4,3.

  2. #2
    Sencha User
    Join Date
    Dec 2012
    Posts
    65
    Vote Rating
    1
    Answers
    6
    azamatoak is on a distinguished road

      0  

    Default 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.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    9
    Vote Rating
    0
    Amaya is on a distinguished road

      0  

    Default


    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?

  4. #4
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Omaha, NE
    Posts
    507
    Vote Rating
    18
    Answers
    4
    estesbubba will become famous soon enough estesbubba will become famous soon enough

      0  

    Default


    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.

  5. #5
    Sencha User
    Join Date
    Jul 2012
    Posts
    9
    Vote Rating
    0
    Amaya is on a distinguished road

      0  

    Default


    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?