Firebase : InvalidApnsCredential while certificates are valid

前端 未结 3 1550
抹茶落季
抹茶落季 2020-12-31 01:10

Small question.

I\'m trying to send a message to my push notification test app. It\'s been working in proof of concept several weeks ago on the same application but

相关标签:
3条回答
  • 2020-12-31 01:23

    In case if others are also facing the issue here are few tips:

    1)Whenever you are stuck with notification issues try sending a push via the GUI console that firebase provide to send notifications

    2) If your live app at Appstore is not receiving push notification but is receiving notification only when running via Xcode then you have not uploaded the production certificate to firebase console

    3)If you have uploaded both production and development certificates and still notifications are not received then download the latest certificates and upload them again to the firebase console

    0 讨论(0)
  • 2020-12-31 01:27

    Adding Team id in Firebase worked for me.

    Firebase console -> General -> select your app -> Add TEAM ID

    You can find team ID in Apple developer portal :

    https://developer.apple.com/account/#/membership

    0 讨论(0)
  • 2020-12-31 01:27

    In the case of uploading a .p8 file (APNs auth key), adding proper Key ID worked for me.

    When you download the .p8 file from Apple. The filename will be in format AuthKey_XXXXXXXXXX.p8. The 10 digit(marked XXXXXXXXXX after the AuthKey_) is the Key ID you need to add.please refer to the image

    0 讨论(0)
提交回复
热议问题