簡體   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