`InvalidProviderToken` when trying to send push notification to second app

I am using a Key to connect my notification server with APNS in order to send out notifications to users. I have recently added notifications to a second app of mine, using the same notification server to fire off notifications for both apps. However, any notifications going to the second app return the error InvalidProviderToken, where as I get no such issues when send notifications to the first app. Everything, including the payloads, are exactly the same between the two apps, the only difference is that the device IDs are attached to different apps.

Does anyone know why/how this would happen and how I can resolve it?

Answered by Engineer in 810481022

Are you certain you are using the same JWT token generated with the same Key for both pushes?

The InvalidProviderToken error is not a mystery and indicates a problem with the JWT token.

Please provide the apns-id of a push request that you got this error for.

Accepted Answer

Are you certain you are using the same JWT token generated with the same Key for both pushes?

The InvalidProviderToken error is not a mystery and indicates a problem with the JWT token.

Please provide the apns-id of a push request that you got this error for.

`InvalidProviderToken` when trying to send push notification to second app
 
 
Q