RobotsAndPencils/buford

document (common) errors and what to do

nathany opened this issue · 2 comments

BadCertificateEnvironment #33 #76
unknown certificate #80

azr commented

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.

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