-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvalidProviderToken #477
Comments
You can get a valid provider token on the Apple developer site, members section. |
Make sure you are using the correct team ID and key ID |
@winter7621 I found team ID on apple dev website in the membership section, but I cannot locate anywhere key ID, can you tell me where to find it? |
@winter7621 you have to generate new certification from developer console .Certificate for Apple Push Notification token-based authentication". |
This was a helpful article for me. You will get your key id at the end of it. http://gobiko.com/blog/token-based-authentication-http2-example-apns/ Look in the Membership section then for the Team Id like you said. |
When sending message like in tutorial below, I get error:
response: { reason: 'InvalidProviderToken' } }
Any idea what I am doing wrong?Apple says:
APNs supports only provider authentication tokens that are signed with the ES256 algorithm. Unsecured JWTs, or JWTs signed with other algorithms, are rejected, and your provider server receives the InvalidProviderToken (403) response.
https://eladnava.com/send-push-notifications-to-ios-devices-using-xcode-8-and-swift-3/
The text was updated successfully, but these errors were encountered: