[ https://issues.apache.org/jira/browse/CB-11451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah resolved CB-11451. ----------------------------------- Resolution: Incomplete > 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.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org