phonegap-build / PushPlugin

This repository is deprecated head to phonegap/phonegap-push-plugin
https://github.com/phonegap/phonegap-plugin-push
MIT License
1.31k stars 996 forks source link

cordova is not defined #640

Open valvonauta opened 9 years ago

valvonauta commented 9 years ago

hi, sorry for this question, i'm new in pgb world. I'm trying to use this plugin in my app. In phonegap build site i found the code to integrate in config.xml. After that i downloaded and included phonegap.js in my app.

When i try to launch my app i get error Cordova is not defined. I use other plugins in my app without any problem, could you help me? thanks

M

charpin commented 8 years ago

I think your cordova.js is not in your index.html.

You don't include manually phonegap.js in your app. Phonegap Build do it automatically when it generate platform project (android, iOS or whatever).

It's not a problem with this plugin but with your configuration cordova project.