Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

appery.navigateTo not working on iOS device

Hi Team,

I was finalizing my app and it works perfect on chrome, firefox and android, but at the last minute, I found out that it didn't work at all on iOS device

After hours of debugging, (weinre didn't show up any error, I had to add 'console.log' and 'alert' at almost every line of code.), I found that the appery. navigateTo doesn't work. And also when the app runs on iOS , it failed to see some of my custom javascripts.

I tried to simulate the problem with a couple of empty new pages, page 1 and page2.
I set page1 as the startup page, and add a button on it to navigate to page2.
it didn't work on iOS device.

However, when I tried to create a new app with the same page 1 and page2, and the navigation worked!!

It seems that this problem is only with this single app. I think some source files may be corrupted and tried restoring. that doesn't help either.

Please let me know if you want to see the app.

Thanks & Regards

Don

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

appery.navigateTo not working on iOS device

Dongzhi,

Please share (http://devcenter.appery.io/documentat...) your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and provide us with the following information:

1) App name
2) Test credentials if login functionality is implemented in your app
3) Detailed steps to reproduce the issue
4) Specify iOS version.

Amr Osman
Posts: 0
Joined: Sat Nov 14, 2015 11:58 am

appery.navigateTo not working on iOS device

Check the Libraries version (v3.0 or v2.3) of your app try to downgrade the version or Upgrade it. In the App Setting External resources section. And test it if it works. I had similar issue and I downgraded my app and it works.

Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

appery.navigateTo not working on iOS device

Hi Alena,
I just shared my app, here 's the information:
1) App name: Dotoday
2) no need for credentials
3) steps to reproduce:
issue#1 : appery.navigateTo not working.
open the app on iOS device (ver 9.2) with app tester or Safari. You should see the start up page "page 1", click on the button "go to page2", you will see that it is loading forever.
if you open the app with android or chrome, it is working.

Issue#2:
my custom script "global.js" and "origami.js" can not be accessed by the app when it is on iOS.
in global.js , there is a function Glb.device.isOnline(), which detects if the device is online or not.
Click the button "Glb.device.isOnline()" on page1 on IOS device, you should see an error message appears "ReferenceError: Can't find variable:Glb".
But if you open the same page with Chrome, or on Android, it shows "I'm online "if your device is online.

4)iOS version: 9.2

Thanks!

Let me know if you need anything else.

Don

Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

appery.navigateTo not working on iOS device

Hi Amr Osman,
It worked! Thanks so much for your help!
After I changed the library version from v.2.2 to v3.0, and appery.navigateTo works on iOS again.

Don

Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

appery.navigateTo not working on iOS device

HI Alena,
I followed Amr Osman's advice as below and my first problem is solved.
Now my library is ver3.0.I am still having the 2nd issue.

"global.js" is referencing "origami.js".
I guess the app can not see origami.js.
But The 2 scripts worked on a new app on my iOS device.

Don

Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

appery.navigateTo not working on iOS device

Hi Alena,

I found one work around: delete origami.js and copy its copy into a new js. now it's working, not sure why the old origami.js is not working.
I am keeping the old code for your review.

Regards

Don

Return to “Issues”