incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samuel Michelot (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-1561) Using Storage API - rejected by Apple
Date Thu, 18 Oct 2012 21:02:03 GMT

    [ https://issues.apache.org/jira/browse/CB-1561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13479339#comment-13479339
] 

Samuel Michelot edited comment on CB-1561 at 10/18/12 9:00 PM:
---------------------------------------------------------------

Michal, 
I am sorry but I insist! WebSQL was stored in Library before iOS5.1 (this directory as always
been backup by iTunes then iCloud). After iOS 5.1 Apple did the mistake to store the WebSQL
files in the Cache folder, but phonegap made a fix to backup in the Document folder (again
this folder is backup by iTunes and iCloud). And also Apple realize that it was a mistake
that's why the introduce the "Do not back up" attribute for apps that do not need backups.
And yes, WebSQL is mostly used to store user generated data, so it needs backup. If you broke
that, users will lost their precious data again.
And it's not possible to switch easily from WebSQL to FileSystem, WebSQL use complex SQL request...
                
      was (Author: mosamich):
    Michal, 
I am sorry but I insist! WebSQL where stored in Library before iOS5.1 (this directory was
backup by iTunes then iCloud). After iOS 5.1 Apple did the mistake to store the WebSQL files
in the Cache folder, but phonegap made a fix to backup in the Document folder (again this
folder is backup by iTunes and iCloud). And also Apple realize that it was a mistake that's
why the introduce the "Do not back up" attribute for apps that do not need backups.
And yes, WebSQL is mostly used to store user generated data, so it needs backup. If you broke
that, users will lost their precious data again.
And it's not possible to switch easily from WebSQL to FileSystem, WebSQL use complex SQL request...
                  
> Using Storage API - rejected by Apple
> -------------------------------------
>
>                 Key: CB-1561
>                 URL: https://issues.apache.org/jira/browse/CB-1561
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0, 2.1.0, 2.2.0
>         Environment: - Cordova 2.0 on iOS
>            Reporter: Clemens Wyss
>            Assignee: Michal Mocny
>            Priority: Blocker
>             Fix For: 2.2.0
>
>         Attachments: CDVLocalStorage.m.diff, disable_icloud_backup.diff
>
>
> our App uses the Sotrage-API to store data which is being loaded upon first launch. 
> The app is rejected given the following reasoning:
> 'Your app does not follow the iOS Data Storage Guidelines, as required by the App Store
Review Guidelines.
> Please be sure to set the "Do not back up" attribute for all data which is not generated
or modified by the user. To check how much data your app is storing:
> - Install and launch your app
> - Go to Settings > iCloud > Storage and Backup > Manage Storage
> - If necessary, select "Show all apps"
> - Check your app's storage
> The iOS Data Storage Guidelines indicate that only content that the user creates using
your app, (documents, new files, edits, etc.) may be stored in the /Documents directory -
and backed up to 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 appended 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?.
> Please revise your app so that it adheres to the iOS Data Storage Guidelines.'
> Is there a possibility to set this flag for the WebSQL Database file(s)?
> At least for us this is a blocker ...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message