Skip to content

How to add analytics label to cloud messaging? #5105

Answered by mikehardy
FionaYam asked this question in Q&A
Discussion options

You must be logged in to vote

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)"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andersonaddo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants