Reputation: 3644
My deviceready in phonegap isnt working, so I found out that I'm still using an android javascript file from phonegap. Looking in the phonegap/lib/ios/ directory for a javascript file for IOS, I didnt find it. I downloaded phonegap again to make sure I didnt delete it previously.
I dont get this, can anybody help please?
thank you
Upvotes: 0
Views: 2255
Reputation: 23542
I found Version 2.9.0 in Github:
https://github.com/phonegap/phonegap/blob/master/lib/ios/CordovaLib/cordova.js
Upvotes: 1
Reputation: 5267
Have you run the DMG file? I believe the lib and the JS files are embedded in the DMG so you will need to run the installer.
Upvotes: 0
Reputation: 977
It changed the name to "cordova-1.5.0.js" (this is for the 1.5.0 version) Also, from @Mantion answer: And be sure to open the "DefaultActivity.java" file and change "import com.phonegap.*" to "import org.apache.cordova.DroidGap;"
Upvotes: 2
Reputation: 3930
If it is Dreamweaver you are using with Phonegap, download the newest version from here:
http://phonegap.com/download-thankyou
Then upgrade your phonegap according to this guide:
http://idoitonamac.blogspot.com/2011/07/how-to-upgrade-phonegap-in-adobe.html
And be sure to open the "DefaultActivity.java" file and change "import com.phonegap.*" to "import org.apache.cordova.DroidGap;"
IF it is xcode, do as commented by 'dan' and follow this guide:
(which informs you that it is indeed in the www folder of your project the javascript file is located)
Upvotes: 1
Reputation: 1017
Hey, try this link. Seems pretty explicit to me and I hope it'll help.
From what I know, PhoneGap is a plugin... so you must have a /plugins folder in your app... and there it should go.
http://wiki.phonegap.com/w/page/43708792/How%20to%20Install%20a%20PhoneGap%20Plugin%20for%20iOS
If you put it there, then it must be there...
Upvotes: 1