Page 1 of 1
How to Navigate To Page Based on a Local Storage Variable's Value?
Posted: Mon Jun 17, 2013 3:47 pm
by Cameron Johnston
Hello,
I'm working on a mobile app that starts at a login screen. What I want to do is navigate to the next page only when the login requirements have been met. I am able to correctly track the login result as a local storage variable, setting its value to either 'true' or 'false'. Now that I have this local storage variable (T or F), how can I:
Navigate to another page if its value is 'true'
Stay on the login page if its value is 'false'
Any help is appreciated, thanks.
How to Navigate To Page Based on a Local Storage Variable's Value?
Posted: Mon Jun 17, 2013 3:53 pm
by Kateryna Grynko
Hi Cameron,
Run the appropriate JavaScript code on Login service Success event.
How to Navigate To Page Based on a Local Storage Variable's Value?
Posted: Mon Jun 17, 2013 4:05 pm
by Cameron Johnston
Oh okay- I didn't realize there's an Appery JS function for this. Thank you!
How to Navigate To Page Based on a Local Storage Variable's Value?
Posted: Mon Jun 17, 2013 4:12 pm
by Kateryna Grynko
How to Navigate To Page Based on a Local Storage Variable's Value?
Posted: Mon Jun 17, 2013 4:12 pm
by Cameron Johnston
Yeah, found it. Thanks again Katya!