Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make my debug app version receive production push notifications on iOS?

Tags:

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.

like image 873
Dvole Avatar asked Jun 30 '14 13:06

Dvole


People also ask

How do I enable push notifications for apps on iPhone?

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.

Does iOS support push notification?

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.

How do I turn on push notifications for an app?

Turn on notifications for Android devicesTap More on the bottom navigation bar and select Settings. Tap Turn on notifications. Tap Notifications. Tap Show notifications.


1 Answers

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.

like image 171
Hernán Pentimalli Avatar answered Oct 05 '22 15:10

Hernán Pentimalli