【问题标题】:How to get the delivery status of the notification send to Device using Firebase Cloud functions?如何使用 Firebase Cloud 功能获取发送到设备的通知的传递状态?
【发布时间】:2020-05-05 09:28:12
【问题描述】:

我正在借助 firebase 构建一个 Android 聊天应用程序,在这里我想实现消息的传递功能 我可以使用云功能发送通知,但如何知道消息是否成功发送(设备可能离线)。 在这里我需要更新我的数据库I need to update my state as 2如果通知成功发送到设备。 请帮忙!

【问题讨论】:

    标签: android firebase push-notification


    【解决方案1】:

    我明白了,我已经使用数据类型有效负载来满足我的要求!

    收到通知后,我在 onMessageReceived 中将消息状态更改为 2。

    【讨论】:

      猜你喜欢
      • 2019-06-13
      • 2020-08-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-23
      • 1970-01-01
      • 2021-03-18
      相关资源
      最近更新 更多