未看到“已打开" Firebase通知统计 [英] Not Seeing "Opened" Firebase Notification Stats

查看:73
本文介绍了未看到“已打开" Firebase通知统计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过覆盖FirebaseMessagingService的onHandle意图来手动处理Firebase通知.

I'm manually handling firebase notifications by overriding the onHandle intent of the FirebaseMessagingService.

并使用此意图生成通知.

And using the intent I generate a notification.

因为我没有将打开的统计信息报告回Firebase控制台,所以根本没有办法手动向Firebase报告打开的通知.

Is there a way to manually report the notification opened to the Firebase at all because I'm not getting opened statistics reported back to the firebase console.

如上所述,即使让Firebase通知按正常方式处理,也不会报告这些打开的通知.

As above, even when letting firebase notifications get handled per normal, these open notifications are not being reported either.

谢谢!

推荐答案

对于那些现在想知道我的解决方法的人.

For those curious to know my workaround at this time.

我们进行推销活动. 对于每个广告系列,我们都创建了一个独特的,可重复使用的事件. 我们注册事件"campaign_received"和"campaign_opened" 收到消息后,我们将触发事件. 通知打开后,我们将触发事件.

We run push campaigns. For each campaign we created a distinct, reusable event. We register the event "campaign_received" and "campaign_opened" When a message is received, we trigger the event. When the notification is opened, we trigger the event.

然后,在每个事件下,我们选择一个事件,然后只记录每天,每周,每月等的统计信息.

Then, under each event, we select the event, and we just filer there stats per day, week, month etc.

由于事件列表视图显示了发送和/或接收的事件总数,因此需要选择一个事件才能到达事件仪表板区域.

One needs to select the event to get to the event dashboard area, since the event list view shows the total amount of events sent and or received.

对于定制的通知,一个通知可能很快达到500个事件的限制,因此请确保将通知捆绑为可重复使用的事件类别(如果可能).

For bespoke notifications, one might reach the 500 event limit quite quickly so be sure to bundle your notifications into re-usable event categories if possible.

这篇关于未看到“已打开" Firebase通知统计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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