ios – Firebase通知记录/日志API

前端之家收集整理的这篇文章主要介绍了ios – Firebase通知记录/日志API前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在通过几个iOS应用程序发送消息
FCM使用他们的 HTTP protocol API,

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

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

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

有没有办法从FCM获取此类消息信息?

解决方法

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

Impressions and Opens似乎仍然只适用于使用控制台发送的消息.但是现在肯定会发送使用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.

原文链接:https://www.f2er.com/iOS/334520.html

猜你在找的iOS相关文章