证书有效时,InvalidApnsCredential [英] InvalidApnsCredential while certificates are valid

查看:51
本文介绍了证书有效时,InvalidApnsCredential的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试向我的推送通知测试应用发送消息.几周前,它已经在同一应用程序上进行了概念验证,但现在已经不行了.

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.

我失败了:InvalidApnsCredential和Firebase告诉我们:

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"

但是当我在Firebase控制台中签入时,它告诉我dev和prod证书将再有效9个月.

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?

推荐答案

如果其他人也面临这个问题,这里有一些提示:

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

  1. 每当您遇到通知问题时,请尝试通过Firebase提供的GUI控制台发送推送来发送通知

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

如果您在Appstore上的实时应用未收到推送通知,但仅在通过Xcode运行时才收到通知,则您尚未将生产证书上传到Firebase控制台

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

如果您同时上传了生产和开发证书,但仍未收到通知,请下载最新的证书,然后将其再次上传到Firebase控制台

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

这篇关于证书有效时,InvalidApnsCredential的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆