Page 1 of 1
Appery.navigateTo not working on Apple devices.
Posted: Wed Apr 23, 2014 7:44 pm
by Brian Evans
Everything seems to work fine on Android and Windows but on Apple devices my new login script isn't working.
Testing if user has installed the app or not at login.
code
if( obj.User['app_install'] == 1 ) {
Appery.navigateTo('dashboard');
} else {
Appery.navigateTo('Contacts_Device');
}
/code
Appery.navigateTo not working on Apple devices.
Posted: Wed Apr 23, 2014 8:57 pm
by Kateryna Grynko
Hi Brian,
Are you sure you have pages named 'dashboard' and 'Contacts_Device'? Did you test it the same way on other devices? Did you try any other action, for example, alert?
Appery.navigateTo not working on Apple devices.
Posted: Wed Apr 23, 2014 9:00 pm
by Brian Evans
Yes, page names are exact and same actions on both devices. Just won't navigate on the iPod.
Yea, I put alerts all through out the code to find what pieces it was reaching. It gets to this point which is the last statement on the page and then doesn't navigate. If I put an alert after this statement the iPod will display the alert and not navigate, just sit with spinning wheel.
Appery.navigateTo not working on Apple devices.
Posted: Thu Apr 24, 2014 11:58 am
by Maryna Brodina
Hello!
We have just tested navigation on Ios 7.1 and it worked.
We use the following code on buton event "click":prevar v = Appery("mobileradiogroup_3").find(":checked").val();
if(v == 1) {
Appery.navigateTo('Screen1');
} else {
Appery.navigateTo('Screen2');
}/pre
Appery.navigateTo not working on Apple devices.
Posted: Fri Apr 25, 2014 12:31 pm
by Brian Evans
I'll debug our code further even though the login script has not changed for over a month. I even tried commenting out my navigateTo code and put in a basic navigate and it still doesn't navigate on the iPod with 7.1.
Appery.navigateTo not working on Apple devices.
Posted: Fri Apr 25, 2014 1:12 pm
by Nikita
Hi Brian,
Could you share an app link for your project
http://docs.appery.io/documentation/s...
Appery.navigateTo not working on Apple devices.
Posted: Fri Apr 25, 2014 1:13 pm
by Brian Evans
I just figured it out. Chrome wasn't showing 1 JS error but when I tested in Safari it showed the issue and I got it fixed.
Thanks.