Push messages

I am trying to send push messages to an android app.
POST https://android.googleapis.com/gcm/send seems to succeed and I get something (with some numbers) like:

{"multicast_id":9999063399994069899,
 "success":1,
 "failure":0,
 "canonical_ids":0,
 "results":[{"message_id":"0:1416520599679103%8d7d198de508343a"}]}

      

but I don't seem to get a notification on the device ...

Is there anything that can be done with the message_id that it is tracking? Can I somehow tell me if Google really got tired of delivering it to the device and what was the result of this attempt?

+3


source to share


2 answers


I know this is an old question and you may have solved it yourself, but for the sake of completeness I would like to post the solution here.

You can now find the GCM Diagnostics option in the Google Play Developer Console when you select your application. It is placed on the left side.



You just post a registration token or post id and you will soon see a summary of the push notifications associated with that token / id, as well as more debugging information.

Hooray!

+7


source


well, at least until someone provides a better answer about debugging based on post IDs.

It turns out the problem in my case was that the phone plugin I was using was expecting a "message" field in the payload of the push notification message. A bug on my server side made this message non-existent, so it didn't show up in the phone notification area ...



I thank @Eran for partly pushing me to the right line of thought.

0


source







All Articles