[
https://issues.apache.org/jira/browse/CB-11451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15343975#comment-15343975
]
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: https://issues.apache.org/jira/browse/CB-11451
> 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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]