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

localStorage seems to get empty when the app is opened from the suspended state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 5.4.1
    • None
    • cordova-ios
    • iPhone 5s or greater, not sure about the older versions

    Description

      I'm using a plugin that gets location updates in the background mode. On Android and IOS Simulator, everything works fine. But in iPhone 5s and newer versions, when the app is in background state, I can get updates of location, but after the app is moved from background to suspended state, and when the OS sends location update after crossing particular coordinates and tries to execute callback in which localStorage is used, my app's localStorage gets empty. And as it do not gets api-token from the localStorage, so my app logs out.
      NOTE: The localStorage does not get empty permanently, because when I force quit the app and reopen it, the localStorage data is restored and the app works fine again.

      I've been facing this issue for last 6 months and tried each and every thing to fix, but no fix worked.

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            muhammad.mehdi@zigron.com Muhammad Mehdi Raza
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: