Ionic 3 issue on localStorage getting delete when updating new version


#1

we have app on play store which preiviously made in phonegap using localStorage.
when i trie to update our new app (ionic 3) , its making localStorage clear when updating app.
Because of this user need to re-login in app.

Please help to solve this issue.


#2

Don’t use localstorage. Problem solved.


#3

did you understand what i say?

in previous app user is already login. we store the status login in localStorage to check user is login or not.
Now login status is not there when we update app with ionic. ionic removing all storage


#4

I’m saying don’t do that. Use Ionic Storage instead. Back it with SQLite or IndexedDB.


#5

so what about re-login? We dont want to force users to do re-login.