Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8327

BackupWebStorage No Longer Works

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.6.0, 4.1.3
    • None
    • None
    • None
    • iOS

    Description

      Hi,

      The following preference is no longer working:

      <preference name="BackupWebStorage" value="none"/ >

      To reproduce this bug,

      cordova create hello com.hello.www hello
      cordova platform add ios

      Add this to the config.xml file (or local, both are broken)

      <preference name="BackupWebStorage" value="none" />

      Add some content to your LocalStorage in index.js. Something like

      for(var i = 0; i < 5000; i++)
      localStorage.setItem('cordoooooova_' + i, 'Please fix thiiiiiiiiiiiiiis. Thx');

      Build it

      cordova build ios

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Maslow Michel Parpaillon
            Votes:
            7 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: