Behaviour differences between web Tester and Appery app
Hi,
I have an application that has the first page as a blank page with some javascript on. The javascript is;
Code: Select all
var previouslyOpened = localStorage.getItem('Opened');
if (previouslyOpened) {
Apperyio.navigateTo('Logon', {});
} else {
Apperyio.navigateTo('Different_Page', {});
} The Different_Page contains some agreements, and once these are viewed the user is directed to Logon. From then on, whenever the app starts I want them to go directly to Logon. The Logon page has the following javascript on load;
Code: Select all
localStorage.setItem('Opened', true); This seems to work fine using the built in web Tester on Appery. On each load after the first load, they are directed to the Logon page.
This does not work when using the Appery.io iOS app to preview your app. What happens is that the blank start page loads, it successfully directs you to the Different_Page but then immediately navigates back to the blank start page.
There are no navigation elements on any other pages. I do not know why this is happening, but can only assume that the Appery.io preview app renders my app slightly differently.
Can anyone shed any light on this?