Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

intermittent login

Hi Marco,

It works when run again, as the localStorage variable you try to access seems to be created somewhere in your code. If you clear localStorage, it stops working again as if it was a new app.

We mean you to untick "Show in mobile frame" in Test button menu.

Marco Spera
Posts: 0
Joined: Tue Jun 17, 2014 7:14 pm

intermittent login

Hi Katya,

Sorry, I know how to show without mobile frame. I meant what exact does it do. I see that it takes away the frame from the app, but why is it necessary to do this? Does it help anyway with the debugging?

As for the error.

Does it work the second time because it still has a localstorage form the previous instance and therefore doesn't throw an error?

Does the local storage clear automatically everytime you close the app, or do I need to add it manually with "localStorage.clear() ".

And lastly does this mean that I must I am calling the localstorage in JS BEFORE i am actually setting the localstorage?

Thanks again for the help!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

intermittent login

Hi Marco,

1) Frame affects debugging of some applications (for example where third-party API is used: Facebook, Twitter, etc.)
2) localStorage is always stored in app unless you clear it (and won't be cleared if stop or close the app).
3) You can use any localStorage variable, regardless of whether you've described it before or not.

Marco Spera
Posts: 0
Joined: Tue Jun 17, 2014 7:14 pm

intermittent login

Thanks Katya and Evgene!

I set the local storage variable before invoking the service to calculate and the
problem has now been solved.

Return to “Issues”