我已经在Firebase中为APNS配置了大量的应用程序,它总是无痛 . 今天我要配置另一个我已经实现了整个SDK for Messaging,添加了GoogleService-Info.plist,启用了推送通知的软件包ID,在一个设备中顺利运行了Firebase应用程序 .
但Notifications的Firebase控制台配置屏幕不允许我上传我的证书或我的APN Auth Key(我已经拥有) .
缺少上传按钮,“字段”没有做任何事情,我已经尝试过切换浏览器甚至切换计算机(基于Windows) .
我被困在这个屏幕上了 .
EDIT: I inspected the console webpage and saw that my browser is getting 404 from Firebase server connection getApnsAuthKey:
{
"error": {
"code": 404,
"message": "APNS cert not found for requested project and bundle ID",
"status": "NOT_FOUND",
"details": [
{
"@type": "type.googleapis.com/google.internal.firebase.v1.ErrorCode"
}
]
}
}
3 回答
Firebase可能会在此时(2017年11月)使用新的UI - >新元素进行更新 .
检查
Upload
按钮删除了
button
标签中的disabled="disabled"
Upload
按钮已启用!我在使用Firebase控制台时遇到了同样的问题 . 它看起来像服务器端的临时问题 . 所以这是我的解决方案(它适用于我):
打开https://console.firebase.google.com/project/your-project/settings/cloudmessaging/
在Chrome中按cmd选项i打开开发工具
使用开发工具检查灰色框并找到
<button/>
"Upload"元素从此删除
display: none !important;
规则<button/>
还禁用按钮的父div元素的
visibility: hidden;
属性之后,您可以正常上传证书或APNS密钥 .
在我的情况下,上传按钮被禁用的原因未在UI中显示,但在检查元素时可见 .
我的权限是
Editor
的权限,似乎你需要Owner
才能上传 .