繁体   English   中英

在Firebase中跟踪推送通知(使用react-native-fcm)

[英]Track push notifications in Firebase (using react-native-fcm)

我使用react-native-fcm presentLocalNotification()函数在电话上显示推送通知。

我还想跟踪Firebase中的notification_dismissnotification_foregroundnotification_opennotification_receive事件。 文档中写道,这些事件是自动收集的https://support.google.com/firebase/answer/6317485?hl=zh_CN 但是我没有在Analytics(分析)中的事件中看到它们(通过看到自动first_openapp_remove事件)。 您能否建议在Firebase中查看/跟踪这些通知事件该怎么做?

我的建议是您应该尝试https://github.com/invertase/react-native-firebase 这对于使用firebase的功能(例如通知,分析和数据库等)对我来说效果很好。它还可以自动跟踪notification_dismiss, notification_foreground, notification_opennotification_receive

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM