APNS ERROR

When I use https://api.push.apple.com/3/device/e0ae826f3905b010e37c4a07e873481b8446c9dc2788511b2995992884468068
Return error message: {"reason":"BadDeviceToken"}

When I use https://api.development.push.apple.com/3/device/e0ae826f3905b010e37c4a07e873481b8446c9dc2788511b2995992884468068 Return error message:{"reason":"TopicDisallowed"}

why?

Answered by Engineer in 829428022

This token is a development token, so you can only use it on the development endpoint. That explains the first error.

As for the second error "TopicDisallowed", this is not because of an issue with the token, but the topic you are using is not valid for your team.

It is difficult to guess what exactly is a mismatch. Possible causes could be:

  • the Bundle ID does not match the push certificate you are using to connect to APNs
  • you are using a certificate that belongs to another team

Start checking those.


Argun Tekant /  DTS Engineer / Core Technologies

This token is a development token, so you can only use it on the development endpoint. That explains the first error.

As for the second error "TopicDisallowed", this is not because of an issue with the token, but the topic you are using is not valid for your team.

It is difficult to guess what exactly is a mismatch. Possible causes could be:

  • the Bundle ID does not match the push certificate you are using to connect to APNs
  • you are using a certificate that belongs to another team

Start checking those.


Argun Tekant /  DTS Engineer / Core Technologies

During the development process, how should I test whether remote messages are successful?

Changed Bundle ID, use https://api.development.push.apple.com/3/device/98bf6345fc85248dd74eb8a1ac2d18150b5e4299efe5229dd52de7f1c154a33d Push notification was successful, but the phone did not receive the message. What is the reason?

APNS ERROR
 
 
Q