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

Shazron Abdullah edited comment on CB-903 at 8/21/12 10:03 AM:
---------------------------------------------------------------

Took a look at your patch - that looks good, but as you mentioned there should 
be another part to the patch, where we delete the whole "Documents/Backups" 
folder, or only the specific files that were backed up if the setting is on.

Probably just create a CDVLocalStorage::clear or something and iterate through 
the CDVBackupInfo objects to delete the backed-up files: 
https://github.com/mmocny/incubator-cordova-ios/blob/master/CordovaLib/Classes/CDVLocalStorage.m#L182
                
      was (Author: shazron):
    Took a look at your patch - that looks good, but as you mentioned there 
should be another part to the patch, where we delete the whole 
"Documents/Backups" folder, or only the specific files that were backed up if 
the setting is on.

Probably just create a CDVLocalStorage::clear or something and iterate through 
the CDVBackupInfo objects to delete the files: 
https://github.com/mmocny/incubator-cordova-ios/blob/master/CordovaLib/Classes/CDVLocalStorage.m#L182
                  
> iOS 6 - add setting to set WebKitStoreWebDataForBackup for user defaults from 
> Cordova.plist/config.xml
> ------------------------------------------------------------------------------------------------------
>
>                 Key: CB-903
>                 URL: https://issues.apache.org/jira/browse/CB-903
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>         Environment: iOS 6 DP1
>            Reporter: Shazron Abdullah
>            Assignee: Michal Mocny
>            Priority: Critical
>              Labels: iOS6
>             Fix For: 2.1.0
>
>
> If WebKitStoreWebDataForBackup is set to YES in the app's user defaults, in 
> iOS 6 webkit storage is stored in a directory that will be backed up - add 
> equivalent setting in Cordova.plist/config.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to