Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ionic storage on App update

I searched over and over but could not find and answer to this:

  1. What happens to local storage (Used by high level storage class of Ionic 2/3 ) when updating the app?

I saw that when reinstalling it is removed.

Thank you.

like image 800
tsahi Avatar asked Feb 26 '26 12:02

tsahi


1 Answers

I was wondering the same and found a link in which they claim that localStorage is not reliable, you should always use ionic native storage plugin.

Original post

It says that IOS clears localStorage when memory is low, and contains a link for android uses that reports inconsistencies too.

The safest bet is to always use ionic-storage

Edit

If you uninstall and reinstall the app, when you do that, it will clear all app data, including local DBs.

like image 63
Sonicd300 Avatar answered Feb 28 '26 02:02

Sonicd300



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!