上传 APNS 证书的问题 Firebase
Problems to upload APN certifcates Firebase
我正在尝试将我的 iOS 应用配置为使用 Firebase 接收通知。
如果我在没有密码的情况下导出证书和私钥并尝试将其上传(生产或开发)到 Firebase 控制台,我会收到错误 "Incorrect password"。
如果我使用密码导出证书和私钥,我会收到错误 "An unknown server error ocurred" 或 "There was an error reading your certificate"。
我不明白为什么会这样。我确实正确地遵循了教程。有人可以帮助我吗?
您应该使用 APNS 身份验证密钥而不是证书。这是 iOS 中提供商使用 APNS
注册和发送消息的新首选方法
来自 Firebase:
Configuration with auth keys is recommended as they are the more
current method for sending notifications to iOS
For a provider to communicate with APNs, it must employ a valid
authentication key certificate (for token-based connection trust) or
SSL certificate (for certificate-based connection trust). You obtain
either of these certificates from your online developer account, as
explained in “Configure push notifications” in Xcode Help. To choose
between the two certificate types, read Provider-to-APNs Connection
Trust. Whichever certificate type you choose, provider connection
trust is prerequisite to a provider sending push notification requests
to APNs.
只导出 select Apple Push Service 部分而不是 select Keychain Access 中的私钥而不是在 firebase Production APNs 证书中导出私钥浏览您刚刚创建的 p12 文件,它会工作。
我不知道这个实现什么时候会被弃用,但它现在有效(2018 年 2 月 19 日)。
您应该只导出证书,而不是 select 私钥。请看这张截图
我正在尝试将我的 iOS 应用配置为使用 Firebase 接收通知。
如果我在没有密码的情况下导出证书和私钥并尝试将其上传(生产或开发)到 Firebase 控制台,我会收到错误 "Incorrect password"。
如果我使用密码导出证书和私钥,我会收到错误 "An unknown server error ocurred" 或 "There was an error reading your certificate"。
我不明白为什么会这样。我确实正确地遵循了教程。有人可以帮助我吗?
您应该使用 APNS 身份验证密钥而不是证书。这是 iOS 中提供商使用 APNS
注册和发送消息的新首选方法来自 Firebase:
Configuration with auth keys is recommended as they are the more current method for sending notifications to iOS
For a provider to communicate with APNs, it must employ a valid authentication key certificate (for token-based connection trust) or SSL certificate (for certificate-based connection trust). You obtain either of these certificates from your online developer account, as explained in “Configure push notifications” in Xcode Help. To choose between the two certificate types, read Provider-to-APNs Connection Trust. Whichever certificate type you choose, provider connection trust is prerequisite to a provider sending push notification requests to APNs.
只导出 select Apple Push Service 部分而不是 select Keychain Access 中的私钥而不是在 firebase Production APNs 证书中导出私钥浏览您刚刚创建的 p12 文件,它会工作。
我不知道这个实现什么时候会被弃用,但它现在有效(2018 年 2 月 19 日)。
您应该只导出证书,而不是 select 私钥。请看这张截图