PDA

View Full Version : App works in Mobile Safari but not PhoneGap



jpatton
8 Aug 2011, 10:48 AM
I'm working on a Sencha Touch app, and when it runs on the iPhone in mobile Safari it works fine, but when I run it in PhoneGap (I built it at build.phonegap.com) it doesn't work. The same build works fine on BlackBerry and Android. I don't know how to debug this.

The issue comes up when the the app is first started. It's supposed to make an AJAX call and populate a NestedList, but in phonegap the list stays empty.

What should I be looking at?

Pud9y
9 Aug 2011, 5:01 PM
Are you using Xcode with the iOS simulator?

If so you can try console.log() the ajax data, see if its actually retrieving anything in the first place (logs will appear in Xcode's debug console). If its not getting anything, it could be a network connection issue?

Sasha172
24 Nov 2011, 10:58 PM
I have been having the same problem.

In my case, the nested list stays blank too. It can't be an network error since the data its getting is stored locally in the app.

Has anyone solved this yet ???