mihavr
mihavr

Reputation: 28

Bluemix Push REST API messages report details

I'm trying to see why one of my apps is failing at delivering push notifications to iOS devices. On the Push REST API doc page I saw that there was the GET /apps/{applicationId}/messages/{messageId}/report endpoint which I could use but it seems that there is little information given with that.

As a result to GET https://mobile.eu-gb.bluemix.net/imfpush/v1/apps/2cc73363-b50f-4b60-b2f9-c483ff5cd414/messages/8d58f4e/report I only get

{
  "invalid": 2,
  "sent": 2,
  "ios": {
    "invalid": 2,
    "sent": 2
  }
}

for a push sent to 2 ios device.

Is there a way to get more information on why the push delivery has failed/was invalid? Do you have another endpoint where I can get additional info?

Upvotes: 1

Views: 95

Answers (2)

pradeep sg
pradeep sg

Reputation: 193

@mihavr If the GET MessageID report (https://mobile.eu-gb.bluemix.net/imfpush/v1/apps/2cc73363-b50f-4b60-b2f9-c483ff5cd414/messages/8d58f4e/report) gives you invalid status for IOS device that means the problem seems to have been with push certificate is invalid and that generates invalid token when you register the ios device. Hence send message failed to deliver the message on the device and the messageID report shows Invalid status.

{ "invalid": 2, "sent": 2, "ios": { "invalid": 2, "sent": 2 } }

Upvotes: 0

John
John

Reputation: 100

Unfortunately, at this time, there is not a REST API call that will give additional error information. However, if you open a Bluemix Support ticket, we can pull additional error information from the server logs using your AppGUID.

iOS certificate issues are one of the more common of invalid messages in the message report.

Upvotes: 1

Related Questions