cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-11802) BackupWebStorage "none" is not respected with wkwebview-engine
Date Thu, 08 Sep 2016 22:40:20 GMT


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:

Recreating here:
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:

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.

> BackupWebStorage "none" is not respected with wkwebview-engine
> --------------------------------------------------------------
>                 Key: CB-11802
>                 URL:
>             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=""
> <plugin name="cordova-plugin-inappbrowser" spec="~1.4.0" />
> <plugin name="cordova-hide-webview-popover" spec=""
> {code}
> The App is:

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message