cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michel Parpaillon (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-8327) BackupWebStorage No Longer Works
Date Mon, 19 Jan 2015 16:53:34 GMT

     [ https://issues.apache.org/jira/browse/CB-8327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michel Parpaillon updated CB-8327:
----------------------------------
    Description: 
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.

  was:
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.


> 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


Mime
View raw message