localStorage cleared on app restart
Hello,
I have set a localStorage value called 'token' that my application needs to get as soon as it is launched by the user.
The intended behaviour :
if 'token' is set = navigate directly form startScreen to another page.
if 'token' is undefined/null = stay on startScreen
The process works well with the buider's Test function (in the browser).
However in the Appery.io Tester, or on the exported App (apk) if the user closes the App (I mean totally with app swipe out of screen), 'token' is lost and becomes 'undefined'.
I thought localStorage is persistent and should not be cleared even when the application is closed. Am I doing something wrong ?
Thanks for your help.
Shaun