ionic storage on App update

Viewed 1425

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.

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.

Related