[英]Track push notifications in Firebase (using react-native-fcm)
我使用react-native-fcm presentLocalNotification()
函数在电话上显示推送通知。
我还想跟踪Firebase中的notification_dismiss
, notification_foreground
, notification_open
和notification_receive
事件。 文档中写道,这些事件是自动收集的https://support.google.com/firebase/answer/6317485?hl=zh_CN 。 但是我没有在Analytics(分析)中的事件中看到它们(通过看到自动first_open
和app_remove
事件)。 您能否建议在Firebase中查看/跟踪这些通知事件该怎么做?
我的建议是您应该尝试https://github.com/invertase/react-native-firebase 。 这对于使用firebase的功能(例如通知,分析和数据库等)对我来说效果很好。它还可以自动跟踪notification_dismiss, notification_foreground, notification_open
和notification_receive
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.