PhoneGap Build and the Cordova JS File Mystery

58 views
Skip to first unread message

Applejacko

unread,
Jul 3, 2012, 9:18:13 PM7/3/12
to phon...@googlegroups.com

Hello,

I can build my app on my machine for iOS, Android, and BlackBerry, no problem. But I'm having unexpected results using PhoneGap Build.

So I added a JavaScript "alert" statement to my app to tell me when PhoneGap is ready in the registered event listener for "deviceready". And I tried some experiments uploading .zip files with different content (i.e., my app with and without the cordova JS file).

Say I'm trying to run the iOS build for my app from PhoneGap Build:
  • If I upload a .zip WITHOUT a cordova.1.9.0.js in it (for any phone), the alert never pops up. (It doesn't work.) <------------ THIS IS THE ONE I EXPECTED TO WORK!!!!
  • If I upload a .zip WITH a cordova.1.9.0.js for iOS in it, the alert pops up. (It works.)
  • If I upload a .zip with a cordova.1.9.0.js FOR ANDROID in it, the alert never pops up (and I get some strange code messages popping up instead from the incompatible JS file). (It doesn't work. No reason it should. But PhoneGap Build seems to be incorporating the Android JS file in my iOS build, that's the point)
I've tried it multiple times. Am I doing something wrong??

HELP!!

Thanks,

Jack
Reply all
Reply to author
Forward
0 new messages