Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Phonegap Infinite Dialog error when running application?

I'm having an issue developing a phonegap app for iOS. I just copied all the html / css / javascript markup into a phonegap application. I'm using xcode3 on a Mac with 10.6.8

When I go to run the application, I get these dialogs once it loads and install:

gap:["Network Status","getConnectionInfo","Network Status0",true]
usePolling: gap_callbackServer
getPort: gap_callbackServer:
getToken: gap_callbackServer:

Then is stays forever at gap_poll:

While I'm getting these dialogs, I can see the app's home screen all loaded in the background.

This application was successfully built, deployed and is currently on the App Marketplace for Android, never had problems like this developing for it.

What could be causing this?

like image 308
Braydon Batungbacal Avatar asked May 13 '12 22:05

Braydon Batungbacal


2 Answers

More than likely you are using the Android version of phonegap.js. Each platform has it's own phonegap.js so you have to make sure you are using the right one. I know it is confusing but we are working on it.

like image 193
Simon MacDonald Avatar answered Sep 18 '22 13:09

Simon MacDonald


Just change the script tag from:

<script type="text/javascript" src="cordova.2.0.0.js"></script>

to:

<script type="text/javascript" src="phonegap.js"></script>
like image 43
Gaurang Deshpande Avatar answered Sep 19 '22 13:09

Gaurang Deshpande