Warm tip: This article is reproduced from serverfault.com, please click

InvalidApnsCredential while certificates are valid

发布于 2017-04-20 09:24:59

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 not anymore.

I get a failure: InvalidApnsCredential and Firebase tell us : "A message targeted to an iOS device could not be sent because the required APNs SSL certificate was not uploaded or has expired. Check the validity of your development and production certificates"

But when I check in my firebase console, it tells me that dev and prod certificate will be valid for 9 more months.

What else could be causing this message?

Questioner
SeikoTheWiz
Viewed
0
2,257 2021-03-06 19:10:22

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 the 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