Open dosomder opened 4 years ago
I think it would be useful to have the From field in onMessageReceivedCallback. The Java API for example does provide this: https://firebase.google.com/docs/reference/android/com/google/firebase/messaging/RemoteMessage#getFrom()
From
onMessageReceivedCallback
Use case is if you are subscribed to multiple topics you may want to handle it differently depending on the topic. Currently you have to send the topic name also in the data object.
I think it's already parsed and put into the JSON object.
Thanks. I think it would be good then to put it into the Message interface
Message
I think it would be useful to have the
From
field inonMessageReceivedCallback
. The Java API for example does provide this: https://firebase.google.com/docs/reference/android/com/google/firebase/messaging/RemoteMessage#getFrom()Use case is if you are subscribed to multiple topics you may want to handle it differently depending on the topic. Currently you have to send the topic name also in the data object.