Dear Appery,
i have this code:
code
var loginStatus = localStorage.getItem('LoginStatus');
var sessionID = localStorage.getItem('SessionID');
var IsUserActivated = localStorage.getItem('IsUserActivated');
// case no user/password match
if (loginStatus == "0" && sessionID == "")
{
localStorage.setItem('Message','The user/password pair does not match, please check your credentials and try again.');
//alert(loginStatus + " / " + sessionID);
// hide wait msg
Appery('img_wait').hide();
Appery.navigateTo('ErrorMessage');
}
// case user exists but not activated
else if (IsUserActivated.toLowerCase() == 'false')
{
//alert("case user exists but not activated");
setTimeout(function(){showSpinner()}, 1);
Appery.navigateTo('NotActivated');
}
else
{
//alert("case else");
//get voices
Voices.execute({});
// get user credit
UserCredit.execute({});
}
/code
on first if case the Appery.navigateTo('ErrorMessage'); doesnt take the user to that page while on the second if case the Appery.navigateTo('NotActivated'); is working without any problems, there are no errors in the console and the name of the page is correct.... any thoughts?
Best,
R.