FCM 通知发送报告 [英] FCM Notification Delivery Report

查看:17
本文介绍了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 通知发送报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆