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?
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