gpt4 book ai didi

ios - Firebase 通知记录/日志 API

转载 作者:技术小花猫 更新时间:2023-10-29 11:16:07 28 4
gpt4 key购买 nike

我正在通过以下方式向多个 iOS 应用程序发送消息 FCM通过使用他们的 HTTP protocol API ,

我需要一个消息记录列表,包括负载、发送时间和平台,就像我可以在 Firebase Notification Console 中监控的那样.

似乎通过 HTTP API 发送的消息不会被记录并显示在控制台中(只有那些在控制台中手动发送的消息才会)。

我还没有找到任何与这些消息传递事件/日志获取相关的 API 文档。

有没有办法从FCM中获取这种消息信息?

最佳答案

自 2018 年 8 月起,使用 FCM API 发送的消息的统计信息现在可以从控制台中看到。从云消息传递部分,单击报告选项卡。从那里,您将能够按消息类型(通知数据 和所有)进行过滤

enter image description here

似乎展示次数打开次数 仍然仅适用于使用控制台发送的消息。但是 Sends 现在肯定会计算使用 FCM API 发送的消息。

引用:https://firebase.googleblog.com/2018/08/in-app-messaging-crashlytics.html


更新:自去年以来,FCM 诊断页面已被禁用。


如果您拥有 Play Dev Console 帐户并且您的应用至少处于 Alpha 测试阶段,则可以使用 Diagnostics and Statistics页。但是,如果您正在寻找 API,目前还没有可用的 API。

否则,我认为您需要的大部分详细信息(如负载和发送时间)都可以单独从您的应用服务器记录下来。

正如@FrankvanPuffelen here 所述,只是为了支持您在帖子中提到的内容:

The Firebase Notifications charts only show analytics for messages that were sent using the Firebase Notifications panel.

There is currently no public API to send Notifications to audiences. The web interface in the console is the only way to send them.

There is currently no API to feed your own FCM messages into the Firebase Notifications analytics panels.

关于ios - Firebase 通知记录/日志 API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40340076/

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