Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
5.4.1
-
None
-
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.