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

查看:10
本文介绍了证书有效时 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 告诉我们:"无法发送针对 iOS 设备的消息,因为所需的 APNs SSL 证书未上传或已过期.检查您的开发和生产证书的有效性"

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天全站免登陆