You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Michel Parpaillon (JIRA)" <ji...@apache.org> on 2015/01/19 17:51:35 UTC
[jira] [Created] (CB-8327) BackupWebStorage No Longer Works
Michel Parpaillon created CB-8327:
-------------------------------------
Summary: BackupWebStorage No Longer Works
Key: CB-8327
URL: https://issues.apache.org/jira/browse/CB-8327
Project: Apache Cordova
Issue Type: Bug
Environment: iOS
Reporter: Michel Parpaillon
Hi,
The following preference is no longer working:
{quote}
<preference name="BackupWebStorage" value="none"/ >
{quote}
To reproduce this bug,
{quote}
cordova create hello com.hello.www hello
cordova platform add ios
{quote}
Add this to the config.xml file (or local, both are broken)
{quote}
<preference name="BackupWebStorage" value="none" />
{quote}
Add some content to your LocalStorage in index.js. Something like
{quote}
for(var i = 0; i < 5000; i++) {
localStorage.setItem('cordoooooova_' + i, 'Please fix thiiiiiiiiiiiiiis. Thx');
}
{quote}
Build it
{quote}
cordova build ios
{quote}
Open the project in Xcode
Build it on a real Device (!= emulator)
When the app has launched
Go to Settings / iCloud / Storage / Manage storage /
Tap on your Device (eg. iPad of Johnny Depp)
Tap on "Show all apps"
Now wait a few seconds (like 10 or 20... It takes some time to refresh)
Result: The app appears (bottom of the list). The local storage has been stored in iCloud.
The app will be surely rejected (It depends on the amount of Datas in the LS)
I've tried several work arounds and I've tested many versions of Cordova (almost all from 3.6.0-0.2.9). Nothing worked.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org