FCM 通知发送报告

FCM Notification Delivery Report(FCM 通知发送报告)
本文介绍了FCM 通知发送报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道在发布消息后,谷歌会发回一个消息 ID,这并不意味着该消息已经发送到设备.

i know after posting message google will send back a message ID and it does not mean that the message was already delivered to the device.

是否可以在 FCM 中接收已发送通知的发送报告?

is there anyway to receive delivery reports of sent notifications in FCM?

推荐答案

是的,message_id 仅标识消息已成功传递到 FCM 服务器.

Yes, the message_id only identifies that the message was successfully delivered to the FCM servers.

2019 年 12 月 17 日 - FCM 更新

FCM 已取消对通过 XMPP 协议的收货的持续支持.代替 XMPP 交付收据,开发人员应 在 FCM 客户端 SDK 中启用交付数据导出.

FCM has removed ongoing support for delivery reciepts via the XMPP protocol. In place of XMPP delivery receipts, developers should enable delivery data export in the FCM client SDK.

我认为您正在寻找的是 交货收据:

Delivery Receipt:如果应用服务器在下游消息中包含 delivery_receipt_requested,XMPP 连接服务器在收到设备收到消息的确认后会发送一个送达回执.

Delivery Receipt: If the app server included delivery_receipt_requested in the downstream message, the XMPP connection server sends a delivery receipt when it receives confirmation that the device received the message.

这篇关于FCM 通知发送报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)
How to render something in an if statement React Native(如何在If语句中呈现某些内容Reaction Native)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Using Firebase Firestore in offline only mode(在仅脱机模式下使用Firebase FiRestore)
Crash on Google Play Pre-Launch Report: java.lang.NoSuchMethodError(Google Play发布前崩溃报告:java.lang.NoSuchMethodError)