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

Shazron Abdullah commented on CB-11802:
---------------------------------------

IndexedDB is the purview of WKWebView which is implemented by Apple. If they 
store it in ~/Library, it does get backed up. We have no control over this.

There is a misconception of what the BackupWebStorage property does. See:
https://github.com/phonegap/build/issues/338#issuecomment-113328140

Recreating here:
{quote}
There is a misconception on what this setting is.

This is solely for backing up your localStorage/websql storage of the WebView 
to workaround the changes by Apple in iOS 5.1 and greater, where they are not 
automatically backed up.

"cloud" means that they are backed up by iCloud. "local" means that it is not 
backed up by iCloud but backed up in Documents/Backups, with the "Backups" 
folder flagged to not be backed up by iCloud. "none" will not backup anything 
to anywhere.

The reason "local" saves in "Documents/Backups" is so that it will be backed up 
by iTunes, so that your app will have the localStorage/webSQL data available 
when you restore a backup.

If you store anything in Library or Documents (except Library/Caches), it will 
be backed up by iCloud. For the Cordova File Plugin, to use the 
Library/Documents folder but not sync it to iCloud, you use the specific extra 
filesystem: 
https://github.com/apache/cordova-plugin-file/blob/master/README.md#ios

On a fresh new project, and examining the iCloud data for your app in Settings, 
you might see that it is enabled and that 0.7kb is being stored. This is your 
app's preferences file in Library/Preferences, since that does get backed up.

https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html
{quote}

> BackupWebStorage "none" is not respected with wkwebview-engine
> --------------------------------------------------------------
>
>                 Key: CB-11802
>                 URL: https://issues.apache.org/jira/browse/CB-11802
>             Project: Apache Cordova
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: iOS, Plugin WKWebViewEngine
>            Reporter: David Heidrich
>            Assignee: Shazron Abdullah
>
> My latest App-Version got rejected because the ~/Library/WebKit folder exists 
> and gets backed-up (I'm saving a lots of Data in IndexedDB). Even though I 
> specified "BackupWebStorage:none" and double checked that  
> `WebKitStoreWebDataForBackup` in NSUserDefaults is correctly set.
> I only tested iOS 9.3. It looks like a Bug to me.
> Plugins I'm using:
> {code}
> <engine name="android" spec="~5.0.0" />
> <engine name="ios" spec="~4.2.1" />
> <plugin name="cordova-plugin-whitelist" spec="~1.2.0" />
> <plugin name="cordova-plugin-statusbar" spec="~2.0.0" />
> <plugin name="cordova-labs-wkwebview-engine-localhost" 
> spec="https://github.com/apache/cordova-plugins.git#master:wkwebview-engine-localhost";
>  />
> <plugin name="cordova-plugin-inappbrowser" spec="~1.4.0" />
> <plugin name="cordova-hide-webview-popover" 
> spec="https://github.com/BowlingX/cordova-hide-webview-popover.git"; />
> {code}
> The App is:
> https://itunes.apple.com/de/app/paperc-e-book-reader/id1134889856?mt=8



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to