Content display problem in redirect through custom JS Appery.navigateTo('loginPage');
Hi
I have created an app project named Boston-Running-Center through my account.
there on the load event of start screen I have written below script so that in case any user has closed his app without logging out he/she need not to relogin to app at the time of reopening the app.
Detail of app are as below:
Accunt Email: a href="mailto:ymathur.yogesh@gmail.com" rel="nofollow"ymathur.yogesh@gmail.com/a
App NAME: Boston-Running-Center
if(localStorage.getItem('current_userToken') != "" && localStorage.getItem('current_userToken') != null) {
Appery.navigateTo('Menu');
}
else{
Appery.navigateTo('loginPage');
}
The problem is that the function appery.navigateTo() function is redirecting properly and the content of the next page is also reflects once for just 1 second, After that is shows back the content of the start screen without changing the url of the browser.
This problem is occurring while testing in Chrome and apple mobile.
I have created one more app with same code through another account and the same problem is occurring there too.
Detail of this app are as below:
Accunt Email: a href="mailto:oarevalo@gmail.com" rel="nofollow"oarevalo@gmail.com/a
App NAME: mitusis new
please provide some solution to this ASAP.
Thanks in advance