I am using Cordova.webView and trying to use localStorage to cache the username and password of the user. However, although it is assumed that localStorage is solid, I found that every time I remove an application from RAM, localStorage leaves. So how to prevent this?
By βerasing an application from RAM,β I mean killing the application process from the background, for example. in Android 4.0, hold down the Home button and click on the cross.
source share