Variables Maintaining State Query.

Variables Maintaining State Query.

Hi, I am not really sure if I am posting this question in the right place but please bare with me. 

I am planning to create a small Cordova app with the ultimate intention of submitting it.

What I would like to know is the following:

If on load I create a variable, in this case myName which will be used across a number of pages.

On page1, myName is 'Andrew' but if you navigate to page2 it is changed to 'Agatha' what happens when the app is placed in to the background?

For example when the app is re-opened would the variable myName revert to being 'Andrew' or would it maintain it remain as 'Agatha'?

Thanks.


    • Topic Participants

    • paul