-
I would like to add Messages Label in my Firebase Cloud Messaging Reports. Their documentation mentions that should add an analytics label. How should I do this in this package? I can't find in the documentation.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @FionaYam ! I don't think you have to do anything with regard to react-native-firebase As they mention in the doc you linked, this is a JSON option that you would set using the firebase-admin-sdk in a cloud function or similar as you create FCM message JSON that you send to clients. The native firebase-ios-sdk/firebase-android-sdk that react-native-firebase wraps on the client side will consume the FCM JSON that you created, and if it contains the correct keys, it should "Just Work(tm)" |
Beta Was this translation helpful? Give feedback.
Hi @FionaYam !
I don't think you have to do anything with regard to react-native-firebase
As they mention in the doc you linked, this is a JSON option that you would set using the firebase-admin-sdk in a cloud function or similar as you create FCM message JSON that you send to clients.
The native firebase-ios-sdk/firebase-android-sdk that react-native-firebase wraps on the client side will consume the FCM JSON that you created, and if it contains the correct keys, it should "Just Work(tm)"