【问题标题】:Track push notifications in Firebase (using react-native-fcm)在 Firebase 中跟踪推送通知(使用 react-native-fcm)
【发布时间】:2018-07-23 17:03:10
【问题描述】:

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

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

【问题讨论】:

    标签: firebase react-native push-notification


    【解决方案1】:

    我的建议是你应该试试https://github.com/invertase/react-native-firebase。这对我来说非常适合使用 firebase 的功能,例如通知、分析和数据库等。它还可以自动跟踪 notification_dismiss, notification_foreground, notification_opennotification_receive

    【讨论】:

    • 我找到了一个使用 RNF github.com/evollu/react-native-fcm/blob/firebase/Examples/… 创建的本地和远程通知示例。我看到本地通知不需要任何授权,它们会在 Firebase Analytics 中进行跟踪吗?我是否必须使用远程通知来跟踪事件?现在本地通知对我来说很好用,不需要任何其他类型。
    • 我从未使用 react-native-fcm 对此进行过测试。很抱歉我的回复太晚了。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-13
    • 1970-01-01
    • 2020-12-14
    • 1970-01-01
    • 2020-04-23
    相关资源
    最近更新 更多