gpt4 book ai didi

android - 在 `FCM Cloud Messaging` 中获取与推送通知相关的分析

转载 作者:行者123 更新时间:2023-11-29 01:11:07 25 4
gpt4 key购买 nike

我想知道推送通知是否发送到映射到我的用户数据库的所有 registrationId。

我有 8000 个用户,并且都有 registrationId。我已经向他们所有人发送了通知,现在我想确定是否所有这些用户都收到了通知。

那么有什么方法可以使用某些 FCM url 访问此分析。

我知道我可以从 STATISTICS 菜单中查看 google publisher 中的分析并选择 FCM messages 并检查交付状态我可以转到 FCM Diagnostics

Firebase support page

但是使用该工具来确定 8k 用户几乎是不可能的,所以我如何才能获得云消息传递的分析。

很久以前我看到了一些链接但忘了添加书签:(

最佳答案

目前没有 API 可以检索已发送 FCM 消息的传递状态。

一般来说,当 FCM 服务器成功接收到您从 App Server 发送的负载时,它应该返回一个 success:1 响应以及一个 message_id

如果您的目标是了解设备是否已成功接收到消息,您应该实现 Delivery Receipts :

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.

关于android - 在 `FCM Cloud Messaging` 中获取与推送通知相关的分析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42933562/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com