[Firebase Messaging] Context information is hidden from messages received in flutter #5611
Unanswered
bartmentech
asked this question in
Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The messages received in Dart are hiding information in the message handlers. The native code for receiving messages only forwards the payload to Flutter. Information from the RemoteMessage is lost, such as the sender of the message.
In use cases where an app will subscribe to more than 1 topic, it becomes hard to figure out where a message originated from. Therefore, the message forwarded to Flutter should also include the context information such as the sender.
The responsible code for the Android implementation is found here
To Reproduce
Steps to reproduce the behavior:
subscribeToTopic("my-topic")
onMessage: (Map<String, dynamic> message) async {}
Expected behavior
The expected behaviour of receiving a message would be the inclusion of the information present in the RemoteMessage class.
Beta Was this translation helpful? Give feedback.
All reactions