Firebase:证书有效时的InvalidApnsCredential [英] Firebase : InvalidApnsCredential while certificates are valid

查看:643
本文介绍了Firebase:证书有效时的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告诉我们:由于所需的APN SSL证书是,因此无法发送针对iOS设备的消息没有上传或已过期。请检查开发和生产证书的有效性

I get 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和产品证书有效期为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

2)如果您在Appstore的实时应用程序没有收到推送通知但仅在通过Xcode运行时收到通知,那么您还没有将生产证书上传到firebase控制台

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 )如果您已上传生产和开发证书但仍未收到通知,则下载最新证书并将其再次上载到firebase控制台

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

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

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