I’m using the ionic framework and the window.localStorage object to store data (e.g.: did the user ever log into the app)
This works fine while the app is running, but on every restart it seems like the localStorage get’s cleared (Android, not sure on iOS)
I’m accessing it through window.localStorage.getItem() and window.localStorage.setItem()
I build the app with Cordova 4.3.0
Am I doing anything wrong? Should I use a different method?