【发布时间】:2017-08-17 19:25:20
【问题描述】:
我在 firebase 控制台中为苹果 APNs pushNotifications 创建了一个新项目。我遵循了 firebase 文档中的所有说明,例如生成 Ssl 证书并将 p12 证书(开发和生产)上传到 firebase 以及配置文件。并且还在 Appdelegate 中添加了所需的全部代码。并且还在功能和授权文件 APNs 环境中激活了 pushNotifications 设置为开发。
当我从 firebase 通知消息发送示例消息时,我的 iPhone(6) 能够接收通知(通过 FCM 令牌发送,并且 bundelId 也能够接收通知)。但是从我的具有相同 FCM 令牌的应用程序服务器,我无法接收通知,但我的服务器端收到回复,因为通知发送了 Ok,来自 firebase 的 200 代码。
我无法从上周获得解决方案,也无法从移动端或服务器端获取问题所在。
在此先感谢....
【问题讨论】:
-
你配置完成了吗?
-
我在控制台日志中显示为
无法获取 APNS 令牌错误 Domain=com.firebase.iid Code=1001 "(null)"
标签: ios firebase apple-push-notifications firebase-cloud-messaging