cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-11451) localStorage seems to get empty when the app is opened from the suspended state
Date Wed, 22 Jun 2016 09:15:58 GMT


Shazron Abdullah commented on CB-11451:

Please provide a reduced test case in a new project so we can repro. In any case, localStorage
is inherent in UIWebView (Apple code) and I'm not sure we can do anything, but the sample
code will help isolate who is at fault.

> localStorage seems to get empty when the app is opened from the suspended state
> -------------------------------------------------------------------------------
>                 Key: CB-11451
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 5.4.1
>         Environment: iPhone 5s or greater, not sure about the older versions
>            Reporter: Muhammad Mehdi Raza
>            Assignee: Shazron Abdullah
>              Labels: IOS, IOS-Suspended-State, localstorage
> 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.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message