Search code examples
iosapple-push-notificationspubnub

APNS2 error 400: DeviceTokenNotForTopic - Getting this error when sending Push Notification via PubNub


As the title says, I am getting

APNS2 error 400: DeviceTokenNotForTopic

When trying to send notification to apple device from PubNub console and listening to the events on -pndebug channel.

Neither Apple not PubNub provides a document to address this issue.

I have already verified the certificates used for app distribution and the ones uploaded on PubNub console.


Solution

  • Just so we have an answer for this, the issue was PubNub account config related and likely not something that will affect anyone else using PubNub for push notifications.