Push notification plugin, how to use it?

67 views
Skip to first unread message

Luca

unread,
Oct 18, 2015, 3:57:56 PM10/18/15
to phonegap
Hello everybody, I followed what's written in the github repository but I think I didn't quite understand how to use this plugin.

I put this code in the app and no notification appears...
var push = PushNotification.init({ "android": {"senderID": "12345679"}, "ios": {"alert": "true", "badge": "true", "sound": "true"}, "windows": {} } );

I'm using cordova version 5.1.1 on Android. I use jQuery only. My OS is Windows 7  and I use the CLI to compile.
Can someone explain better, please?

sardar khan

unread,
Oct 20, 2015, 2:28:40 AM10/20/15
to phonegap

first you have to create the project on googledeveloper and the take its project number and copy and paste in the senderId and then check if you have internet connected or wifi connected and then alert the api key in push.onNotification method . 
Reply all
Reply to author
Forward
0 new messages