【问题标题】:notifications not received from Firebase未从 Firebase 收到通知
【发布时间】:2018-02-02 23:27:26
【问题描述】:

从远程消息功能收到 FCM firebase 通知推送消息,但未在我的设备上推送。我已将 firebase 代理委托设置为是。

【问题讨论】:

标签: ios swift firebase notifications firebase-cloud-messaging


【解决方案1】:

请记住,模拟器上没有显示推送通知,当应用程序运行时,只需隐藏应用程序并尝试发送新通知。

【讨论】:

    【解决方案2】:

    你需要确保某些事情。

    1. 您不是在模拟器中进行测试。那里不允许通知。
    2. 有效载荷曾经是正确的。 https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html
    3. 应授予通知权限。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-24
      • 2017-12-24
      • 2017-09-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多