My server is sporting only one version of sending push notifications, and it has my production (release) push certificate.
How do I test the notifications on my debug device and debug builds, using the same production certificate?
My device is sending the token, but when I attempt to send a real push notification Apple servers return status 8 error, that means that device token is incorrect.
Go to Settings and tap Notifications. Select an app under Notification Style. Under Alerts, choose the alert style that you want. If you turn on Allow Notifications, choose when you want the notifications delivered — immediately or in the scheduled notification summary.
Apple has been supporting push notifications on OS X via the Apple Push Notification Service (APNS). Developers also use APNS to deliver a notification to iOS devices.
Turn on notifications for Android devicesTap More on the bottom navigation bar and select Settings. Tap Turn on notifications. Tap Notifications. Tap Show notifications.
A little late to the party, but even when all the other answers are correct, they don't really answer your question.
The answer is: You cannot test production APNS with a debug build.
Debug builds will always get sandbox APNS tokens.
Release builds (ad-hoc or app store) will always get production APNS tokens.
The logic behind that is, in order to debug an app you need to sign with a debug certificate and provisioning profile. That provisioning profile determines what APNS endpoint your app connects to.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With