jchambers / pushy-console

A simple GUI app for sending APNs (iOS/macOS/Safari) push notifications
MIT License
53 stars 18 forks source link

APNS server - prod - does not work #25

Closed pkasson closed 4 years ago

pkasson commented 4 years ago

If I choose the development server it works.

I thought Apple changed the APNS to be all inclusive, all environments ?

jchambers commented 4 years ago

Can you please be more specific than "does not work?" What are you getting for an error message? What kind of credentials are you using?

pkasson commented 4 years ago

Sorry for the traditional IT response of not working. When I switch to using the prod APNS server from the first drop down (api.push.apple.com), it fails, , the logs at the bottom say under status 'Rejected' and the Details say 'BadDeviceToken'

jchambers commented 4 years ago

Right; so credentials (your certificate/token) work across environments, but receiving devices will generate different tokens depending on which environment they're in. Your phone's APNs token for production is different from its token in development.

The problem here is that you're trying to use your phone's development token in a production environment.