EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 444 forks source link

[Req] Firebase Messaging From field #1596

Open dosomder opened 4 years ago

dosomder commented 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()

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.

manojdcoder commented 4 years ago

I think it's already parsed and put into the JSON object.

dosomder commented 4 years ago

Thanks. I think it would be good then to put it into the Message interface