通过 Firebase 通知 API 发送消息时,是否可以获得推送通知统计信息,例如交付次数和打开次数? [英] Is it possible to get push notification stats like count of deliveries and opens when sending messages through Firebase notification API?

查看:37
本文介绍了通过 Firebase 通知 API 发送消息时,是否可以获得推送通知统计信息,例如交付次数和打开次数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们即将从 Parse.com(将于 2017 年 1 月停用其服务)切换到 Firebase 通知 API,以向我们的 android 和 iOS 应用发送推送通知.

We are about to switch to Firebase notifiaction API from Parse.com (that are retiring their service in jan 2017) to send push notification to our android and iOS Apps.

我现在的问题是,我看不到任何有关成功交付计数的统计信息,并在 Firebase 控制台中打开特定消息?我们在发布到 https://fcm.googleapis.com/fcm/send 时得到的唯一信息是一个message_id

My question now is that I can't see any statistics about counts of successful deliveries and opens in the Firebase Console for a specific message ? The only thing we get when posting to https://fcm.googleapis.com/fcm/send is a message_id

{"message_id":123456789}

但我没有看到任何关于如何使用此 message_id 跟进已发送消息的 api 文档.Firebase 控制台只有在 Console Gui 中创建的消息的这类统计信息,而不是通过 api 帖子创建的消息.

But I havn't seen any documentation on a api how to follow up a sent message with this message_id. And the Firebase console has only the these kind of stats for messages created in the Console Gui, not the one create through an api post.

这些统计数据可在 Parse.com 中获得.但似乎 Firebase Cloud Messaging 的级别更低一些,而且这些统计数据可能不是开箱即用的,因此它们可能必须在日志应用程序等中定制,方法是在收到消息时从应用程序发回事件并打开等.或者在阅读 Firebase Notification api 文档时是否有我错过的标准化方式?

These stats was availible in Parse.com. But it seems as Firebase Cloud Messaging is a bit more low level, and perhaps these stats doesn't come out the box, so they might have to be custom made in a logging app etc by sending back events from the apps when messages as received and opened etc. Or is there a standardized way that I've missed when reading the Firebase Notification api docs ?

推荐答案

当您从 Firebase 通知控制台发送通知时,您会获得有关有多少人收到和打开消息的统计信息.但 Firebase 通知还没有 API.

When you send notifications from the Firebase Notifications console, you get statistics about how many people received and opened the messages. But there is no API (yet) for Firebase Notifications.

如果您使用 Firebase 云消息传递 API (https://fcm.googleapis.com/fcm/send),消息统计信息不会显示在 Firebase 通知控制台中.在这种情况下,您可以(正如 AL. 所说)在 Google Play 开发者控制台中获取交付统计信息.

If you're using the Firebase Cloud Messaging API (https://fcm.googleapis.com/fcm/send), the message statistics don't show up in the Firebase Notifications console. You can (as AL. says) get delivery statistics in the Google Play Developer Console in that case.

这篇关于通过 Firebase 通知 API 发送消息时,是否可以获得推送通知统计信息,例如交付次数和打开次数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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