【问题标题】:Firebase Push Notifications not working, am I missing something?Firebase 推送通知不起作用,我错过了什么吗?
【发布时间】: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


    【解决方案1】:

    我删除了FirebaseAppDelegateProxyEnabled = NO from my plist 并添加了 APN 证书而不是密钥,它起作用了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多