Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the phonegap.js file for PhoneGap 3.0?

Tags:

cordova

When I user phonegap create my-app to create an application I don't see phonegap.js anywhere, but it's referenced in index.html.

How do I get phonegap.js? I read something about it being created on the first run of the www folder or something but that, but that's ridiculous...isn't it? And besides, I've done that and no phonegap.js.

like image 682
SomethingOn Avatar asked Dec 05 '25 03:12

SomethingOn


2 Answers

Try to build your app first, for example with:

phonegap build android

Then the phonegap.js should be in:

/path/to/my-app/platforms/android/assets/www

like image 184
Anonym Avatar answered Dec 07 '25 16:12

Anonym


Actually there is a phonegap.js file that must be auto-generated. It exists in XCode's DerivedData folder. We were getting errors when working out of the browser and this would be the reason :s

It would be nice if they would explain that somehwhere.

like image 41
SomethingOn Avatar answered Dec 07 '25 16:12

SomethingOn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!