Phonegap (NOT Cordova) 3.5 sample application does not burn deviceready

Today I noticed that: sudo npm update -g phonegap showed that v3.5 is available. After this update, phonegap -v returns: 3.5.0-0.20.4

Then I set about creating a sample application using the Phonegap CLI:

  • cd myProjectFolder
  • phonegap create HelloPhoneGap350
  • cd HelloPhoneGap350
  • phonegap local build ios (to add the ios platform)
  • ios phone saver --emulator

At this point, the sample application starts. However, the deviceready event is never called. (I added a warning code and I see that app.initialize () and app.bindEvents () are being called, but onDeviceReady is never being called. I was also able to reproduce this using the Android build.

A few weeks ago, I went through the exact same process with the previous version of Phonegap (v3.4.0-0.20.0) to create HelloWorld340, which works fine and calls the onDeviceReady function.

I understand that the packaging of Phonegap 3.5.0 from Cordoba 3.5.0 appeared in just a few days. Perhaps this is a packaging error? Anyone has ideas or solutions.

Thank!

0
source share
3 answers

More interesting observations over the past few days. I went through the process to create some more projects. (I am moving a bunch of old PhoneGap applications to the new PhoneGap 3.5, and it’s easier to create new sample projects and just move the existing HTML / JS / CSS code) ...

, - - "deviceready" . :

  • , phonegap.js, , (yourProjectName/platform/ios/www/phonegap.js), .

Xcode , , , "Staging/www" Xcode. , , Xcode, , , , /.

  • CLI: iOS
  • Xcode: Product - Clean < - , , .
  • Xcode: Product - Build/Run

( , cordova.js, /ios/www, . , 2 : cordova. js phonegap.js)

index.html( / ).

+1

, 3.5.0-0.2.4, .
, cordova.js?

+1

brauchle_andi , "" .

PhoneGap 3.5.0-0.20.4

() , cordova.js platform/ios/www

index.html script, phonegap.js. index.html cordova.js .

PhoneGap.

, :

  • npm ( , , , ) PhoneGap 3.5.0-0.20.4
  • cd Documents/PhoneGapProjects (, Hello World)
  • phonegap create//John_Arnold/Documents/PhoneGapProjects/HelloPhoneGap350A -i "com.phonegap.HelloPhoneGap350A" -n "HelloPhoneGap350A"
  • ios --emulator

. index.html .

0
source

All Articles