Persistent logins on Cordova


#1

Hi all, I’m working on a Cordova client for an existing Meteor app. I noticed while testing it in Android (5.0.1), logins are not persistent upon app restarts. Is this the intended behaviour?

I’m guessing it’s because Meteor is using localStorage to store resume tokens, and I believe the OS wipes localStorage on exit? I’d like to know if anyone else is experiencing this / has made any workarounds or I’ve just done something wrong.


#2

When testing with Android <5, I’ve noticed no problems. Maybe it’s a problem with Android 5 only?


#3

That’s a good point, I have yet to test with <5. I must go find one of my old phones :smile:


#4

Just tested with a different phone running 5.1.1 (HTC M7), doesn’t have this problem. Seems to be a 5.0.1 issue…