This is the first time i hear about this, are you sure, do you have some more info about this?
Iām using IonicView to test my app on my iPhone, before may update on the app the LocalStorage was working fine, I could close IonicView and the localstorage would be kept.
However, after Mayās update not only the IonicViewApp keeps losing my login but also it doesnāt keep anything about the localstorage if I close the app, so I ended up losing interest on it because of that =, I wish Iād never updated it, I was so happy with my āofflineā House Budget test app.
Maybe this can be related to the problem youāre facing. Are you using the IonicView to test?
i havnt tried this yet, but they claim that local storage cannot be trusted:
Two iOS users told me that my app had deleted the values that Iāve stored using localstorage.
Hi Iām using localStorage in my hybrid app developed using Ionic framework. Everything works fine, but recently weāve noticed that if I keep my app in background for a longer period,like 5-6 hours, and while I re-open the app, it looses its values in the localStorage. But if I force quit my app and re-open it, it works fine, and then it gets all the values in the localStorage⦠Quite strange for me, as this only happens in IOS, and Android works absolutely fineā¦
Recently, iOS users have been telling me that they continually need to re-login to the app. Auth tokens are stored in localstorage for 1 month. Localstorage is being wiped regularly for these users. I have been unable to pin down why, and it isnāt for every user. Iām going to switch to storing things on disk.
Hi. I just signed up as I am interested in following what the ionic ecosystem does around enabling offline support, and I found this thread.
Weāre actually finalizing porting our SQLite sync framework as a Cordova plugin for Android (Android only for now, iOS later). A world-class powerful sync framework: bidirectional differential sync, full-CRUD, ultra-fast bulk sync⦠while being very light and easy to integrate.
We were wondering: can there be a future for it among ionic developers? Would this interest you? (and yes, weāre considering open-sourcing it, but we havenāt decided yet because we need to find an economic sense for us to this⦠If you want to comment, please do!).
Because of this implication I created a Cordova plugin: plugin-cordova-nativestorage
https://github.com/TheCocoaProject/cordova-plugin-nativestorage
and a corresponding wrapper for Ionic:
https://github.com/TheCocoaProject/ngcordova-wrapper-nativestorage
Hi, does anyone know about this issue on iOS 11?
Hey guys, just noting where localstorage is stored in OS X, for instance. Iām here at work now and testing my PhoneGap app (it would behave like Ionic with respect to this) using the developer app and I note that all of my local storage from my home session is now missing. (This reads like ālocal storage isnāt persistent across invocationsā, right?)
Look in /Library/Safari/LocalStorage/*.localstorage*
ā¦and note that each trio of files is decorated byāyou guessed itāthe IP address in use during that session.
So if I set something at home (which might land in 192.168.0.50_3000.localstorage) and then I bring it somewhere else like Starbucks then my Safari is now binding to whatever that new IP address is. So it seems like local storage isnāt persistent across sessions.
In theory, though, if this were running under the context of a built app, then it would live under a different folder under /Library and therefore be more unique and thus, persistent.
this is only in dev enivorment like when using live run on your device. if you deploy the app in release state the app will always load from localhost