0

I am using xmpp/css push implementation, all is fine at server side but I am not receiving any push on device.

So, i need to debug PhoneGap PushPlugin

Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
pradeep1991singh
  • 8,185
  • 4
  • 21
  • 31
  • just confirm first, that device id has been generated or not, otherwise will not get push notification. – Jay Rathod Oct 20 '15 at 09:33
  • Yeah, device is there. Actually push notification was working fine with old implementation we have but was not reliable. So, we switched to new xmpp/css, now all is fine at server but I need to know how to debug a phonegap plugin? which tools i need to debug a phonegap plugin? – pradeep1991singh Oct 20 '15 at 10:47

1 Answers1

0

Firstly please check whether device id is generated or not at Android App side by checking logs.

If generated, then- Try to use DevHttpClient Google Chrome plugin.

In that, you need to enter

Request URL : android.googleapis.com/gcm/send

Content-Type : application/x-www-form-urlencoded

Authorization : key=API_KEY

And in body :

{
   "registration_ids":["XXX Device ID XXX"],
   "data":{"message":"Push Notification Test"}
}

You can check this image: enter image description here

Dhruv
  • 1,801
  • 1
  • 15
  • 27