I have a problem with localStorage on an ionic app on iphone.
on android it seems to work ok.
on iphone the localstorage just expires after awhile.
I've tried with
$localStorage.test
using angular ngStorage.js.
and with:
window.localStorage.test
same results.
anyone experienced this? any solution?
Thanks.
Rafi.
If there is low internal memory on iPhone, iOS automatically delete some caches and localstorage.
LocalStorage works well if there is sufficient memory on the device(usually more than 20mb at least)
So better to use sqlite instead of localstorage :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With