我正在使用应用程序服务器通过Firebase Cloud Messaging发送消息。
Firebase控制台不会列出由应用服务器发送的此类消息。
当我直接使用Firebase控制台发送消息时,它将对自己的消息显示一些分析。

像这样:
Firebase Cloud Messaging Statistics API-LMLPHP

问题是,当我使用应用程序服务器时如何访问消息统计信息?

最佳答案

从2018年8月开始(在this blog post中宣布),可以在FCM控制台的“报告”标签中查看API发送统计信息。默认情况下,它仅显示notification类型的消息,因此,如果仅使用API​​发送data消息,请确保选择“数据”过滤器。

Firebase Cloud Messaging Statistics API-LMLPHP

2018年8月之前:

Firebase Notifications图表仅显示使用Firebase Notifications面板发送的邮件的分析。

当前没有公共(public)API可将通知发送给受众。控制台中的Web界面是发送它们的唯一方法。

当前没有API可以将您自己的FCM消息提供给Firebase Notifications分析面板。

关于Firebase Cloud Messaging Statistics API,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/40124672/

10-12 05:01