Andrew Rhyne
Andrew Rhyne

Reputation: 5090

Uncaught ReferenceError: PhoneGap is not Defined

I am getting a strange issue regarding phonegap usage. LogCat is spitting out an uncaught reference error regarding phonegap not being defined which is killing my application. I am running cordova 2.2, and I am very new to phonegap. Does anyone have any idea what might cause this? The cordova file is being hotloaded into my application as a package, but even if I switch it and statically load it within the html I still get the error! Please help!

    CordovaLog: Uncaught ReferenceError: PhoneGap is not Defined

This is mainly occuring when I use the SQLite Plugin by Brody, but it also happens with other phonegap functionality. Also, if I add an event listener for device ready, it never fires! (I am guessing it already fired before the listener was added because it is nested pretty deep.)

Upvotes: 0

Views: 1580

Answers (1)

Simon MacDonald
Simon MacDonald

Reputation: 23273

You are using some out of date code the PhoneGap object is now "cordova". You should look for an updated version of that plugin.

Upvotes: 2

Related Questions