buford icon indicating copy to clipboard operation
buford copied to clipboard

document (common) errors and what to do

Open nathany opened this issue 8 years ago • 2 comments

BadCertificateEnvironment #33 #76 unknown certificate #80

nathany avatar Sep 22 '16 13:09 nathany

Hey there,

Found another one :

Failed pushService.Push:  the Topic header of the request was not specified and was required

Edit: Documentation says

The apns-topic header of the request was not specified and was required. The apns-topic header is mandatory when the client is connected using a certificate that supports multiple topics.

Edit2: it was just fixed by setting the Topic header of the notification to the bundle identifier with which I built the app.

azr avatar Sep 22 '16 15:09 azr

Thanks for the note. You can also use certificate.TopicFromCert to extract the bundle identifier from the certificate.

nathany avatar Sep 22 '16 18:09 nathany