Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Localstorage deleted inconsistently -> local file backups?

$
0
0

@elduderino15 wrote:

I am using localstorage to save user data in my prototype implementation. I am testing the app exhaustively and using it. However, one of my users managed for the second time to somehow delete the storage. There is only one location in the code where I overwrite my window.localstorage['myStorage'] .

However, it seems to not be as stable as I hoped for. Hence, I first must create a fix where I backup the data. It would be better to store it in the cloud, but that's too much work for now.
I am aiming at local file backups for now as a workaround till I figure where the error is.
Any other suggestions?

I suspect some inconsistent state in the app like recieving a text message or a call to be the reason.

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>