Hi all,
I’m using Ionic storage (’@ionic/storage’) in an app, on android this works fine and the data persists between the app being closed and device restarts. However on iOS this is not being persisted and appears to be removed in the following circumstances;
- Double click home button, swipe to close app and re-open the application.
- The user suspends the app for an undetermined amount of time (if i leave it for a day and come back it is gone)
- Restart the device whilst the application is suspended and re-open the application.
It seems that any event that restarts the app (splashscreen appears) all removes this storage, whereas on android even if the app restarts the data persists.
I’ve looked in the forums and SO but have been unable to find anything that matches my case.
Any ideas why i could be having this difference between platforms?
Thanks.
Details:
"@ionic/storage": “2.0.0”,
“ionic-angular”: “2.2.0”,
“ionic-native”: “2.4.1”,
Angular 2.4.8
"@ionic/app-scripts": “1.1.4”,
This seems to occur on all iOS devices as far as i know, but main testing occurs on an iPad Air 2 (10.3.2) with 1.44Gb of free storage.