I am trying to send push notifications to the phonegap app positioned on iOS and Android. IOS works fine, but Android does not work when I send push notifications to PubNeb, Pars and Amazon SNS from any Dev Console.
I have verified that if I use the GCM API I can send the information, so I am using the correct sender ID, API key and device token.
I do not see any errors on the PubNub console on Pars Dashboard I think push notifications have been sent. There is no error on the Amazon SNS, however, there is no push notification on the device.
I'm out of ideas Thanks in advance for any helpful advice.
With help from PubNub, it was discovered that what was the problem is the following format of the sample on PubNub < / P>
{"pn_gcm": {"data": {"GCMSays": "hi"}}}
but the required format
{"pn_gcm": {"data": {"message": "hi"}}
Updated JSON object and it has worked like all the charm
With Pars Console, I create a JSON object with a similar format I tried, but it does not work. Amazon did not try SNS
No comments:
Post a Comment