Brian Evans
Posts: 0
Joined: Mon Feb 03, 2014 9:28 pm

Appery.navigateTo not working on Apple devices.

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Appery.navigateTo not working on Apple devices.

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?

Brian Evans
Posts: 0
Joined: Mon Feb 03, 2014 9:28 pm

Appery.navigateTo not working on Apple devices.

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Appery.navigateTo not working on Apple devices.

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

Brian Evans
Posts: 0
Joined: Mon Feb 03, 2014 9:28 pm

Appery.navigateTo not working on Apple devices.

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.

Image

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Appery.navigateTo not working on Apple devices.

Hi Brian,

Could you share an app link for your project
http://docs.appery.io/documentation/s...

Brian Evans
Posts: 0
Joined: Mon Feb 03, 2014 9:28 pm

Appery.navigateTo not working on Apple devices.

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.

Return to “Issues”