【发布时间】:2020-09-21 12:56:19
【问题描述】:
我正在尝试向设备发送带有 FCM 注册令牌的测试通知,但 firebase 没有发送通知。
我有:
- 在 Firebase 中创建了我的应用
- 在 Firebase 的设置中添加了我的 APNs 身份验证密钥(也尝试使用 APNs 证书)
- 向我的 Podfile 添加了 Firebase/Messaging && Firebase/Core
- 将 GoogleService-Info.plist 添加到我的项目中
- 在功能中添加了后台模式(远程通知)和推送通知
- 已将 following code 添加到我的 App Delegate 中
- 甚至在我的 plist 中添加了 FirebaseAppDelegateProxyEnabled = NO
- 用真实设备/模拟器测试。应用在后台打开 &&
- 还有notification images
【问题讨论】:
标签: ios firebase firebase-cloud-messaging