-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Hello, i am developing a cordova app which requires push notifications to be sent to users android phone, so i tried using this new phonegap push plugin as old one is deprecated, and it keeps giving me an error in console: Uncaught ReferenceError: module is not defined --- Line 154 Push.js and i dont have much experience with cordova, so can anyone assist me ? #128
Comments
@vikas091 how did you add the plugin to your project? Did you use the cordova/phonegap CLI? |
i tried phonegap or cordova still getting the same Error: Plugin "PushPlugin" failed to install |
@macdonst yes i added the plugin using cordova CLI and i dont know what caused this error but now everything seems to be working fine. Thanks |
what is the solution on this? |
I got something like this....
*2 - set on config.html
* 3 - in index.html*
** 4 - I copy into www/scripts this script... **
and i got this ##I'm using
|
In step 3 don't include push.js, just cordova.js if you don't have it already. Skip the whole step 4 |
If I run with Ripple, this project runs but i'm not sure if PushNotification is active or running; if I change to the VS Emulator 5' Kitkat, returns a lot of erros; All SDK I'been downloaded |
Using Ripple, i see push.js have been loaded into my project =) |
@romuloinnocencio Push won't work on Ripple. We are working on browser support. |
Hum, and how can test in VS Emulator 5' Kitkat or another.... it's my first app/contact with this kind of situation. |
@romuloinnocencio You can't test push on an emulator or simulator. It just doesn't work. |
Right, and what can i do? How can i BUILD a app and transfer to my device and test, any advice?
I delete and reinstall ( http://prntscr.com/bvtn1y ) |
This thread has been automatically locked. |
The text was updated successfully, but these errors were encountered: