Firebase 通知记录/日志 API [英] Firebase notification records/log API

查看:25
本文介绍了Firebase 通知记录/日志 API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过以下方式向多个 iOS 应用程序发送消息

看起来 ImpressionsOpens 仍然只适用于使用控制台发送的消息.但发送现在肯定会计算使用 FCM API 发送的消息.

参考:https://firebase.googleblog.com/2018/08/in-app-messaging-crashlytics.html


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


如果您拥有 Play Dev Console 帐户并且您的应用至少处于 Alpha 测试阶段,则可以使用 诊断和统计页面.但是,如果您正在寻找 API,目前没有可用的 API.

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

为了支持您在帖子中已经提到的内容,正如@FrankvanPuffelen 此处所述:

<块引用>

Firebase 通知图表仅显示使用 Firebase 通知面板发送的消息的分析.

目前没有向受众发送通知的公共 API.控制台中的 Web 界面是发送它们的唯一方式.

目前没有 API 可以将您自己的 FCM 消息提供给 Firebase 通知分析面板.

I'm sending messages to several iOS Apps via FCM by using their HTTP protocol API,

and I need a list of message records including the payload, sent time, and platform like what I could monitor in the Firebase Notification Console.

It seems that messages sent via HTTP API wouldn't be recorded and shown in the console (only those sent manually in the console would).

I haven't found any API documents related to those messaging events/log fetching.

Is there a way to fetch this kind of message information from FCM?

解决方案

As of August 2018, stats for messages sent using the FCM API are now visible from the console. From the Cloud Messaging section, click on the Reports tab. From there, you will be able to filter by message type (notification, data, and all)

It would seem that the Impressions and Opens are still only available for messages sent using the console. But Sends for sure now counts the messages sent using the FCM API.

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


Update: The FCM Diagnostics page has been disabled since last year.


If you have a Play Dev Console account and if your app is in at least Alpha Testing, you can make use of the Diagnostics and Statistics page. However, if you're looking for an API, there is currently no API available for it.

Otherwise, I think most of the details you need (like the payload and time sent) can be logged from your app server alone.

And just to support what you already mentioned in your post, as stated by @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.

这篇关于Firebase 通知记录/日志 API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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