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

data not persistent on Ios after first install

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • cordova-ios 4.5.0
    • None
    • cordova-ios
    • None
    • Info

      • Environment: cordova iOS 4.5.4
      • Adapter: I have used both (IndexedDB/WebSQL/)
      • cordova -6.5.0
      • pouchdb 6.4.1

    Description

      Hello
      iOS stored data is lost after installing app  and then hard closing it. This only happen the first time the app is install

       

      Reproduce

      using PouchDB as the database , I can  add item and get it back but if I quit the app (hard close), and launch it back, my data is gone. This ONLY happen on first install.

      1: I install the app
      2: Save some data on the device
      3: Verify that the data is saved
      4: Double click the home button to close the Ios cordova app
      RESULT: re-open the app (Data is lost)
      6: save some data again
      7: Verify data is saved
      8: double click home to close
      9 re-open app
      RESULT : data is save correctly

      I don't see the same issue on Android,,

       

      Same issue with local storage

      Any ideas..
      Thanks!

      Attachments

        Activity

          People

            Unassigned Unassigned
            premtemp prem
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: