-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cordovaRef.addConstructor is undefined in cordova 2.7 #9
Comments
Are you doing a local (manual) build, or are you using PhoneGap Build? Also is this on Android, or iOS? |
This is a local manual build for iOS. |
ETA on fix? Or should I roll back to Cordova 2.5? |
This StackOverflow answer seems to indicate that you can just remove the surrounding |
I just solved this issue in my app by changing line 2 in GAPlugin.js like so:
Somehow, the |
@zmillman This preliminarily seems to be resolving the issue for me as well. I'm running PhoneGap/Cordova 3.0 with a slightly modified java file, but the javascript was stock until the patch that you suggested. |
Fixed |
I had the same issue with clean install Phonegap CLI 3.1 for Android to local build.
|
After upgrading a project to cordova 2.7, and also updating to latest GAPlugin, this runtime error occurs:
TypeError: 'undefined' is not a function (evaluating 'cordovaRef.addConstructor') at GAPlugin.js:56.
Is addConstructor now gone? Does GAPlugin need to be updated appropriately?
thanks
The text was updated successfully, but these errors were encountered: