flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

🐛 [firebase_messaging] remote message intent action keys

Open flbaue opened this issue 1 year ago • 0 comments

On Android When my app is in the background And I (the user) dismiss a just received push notification via the system menu

Actual: In my onBackgroundMessageReceived callback I get a RemoteMessage object that contains no meaningful data.

Expected: I would like to get the intent action key (com.google.firebase.messaging.NOTIFICATION_DISMISS) so that I understand the reason of the event. https://developers.google.com/android/reference/com/google/android/gms/cloudmessaging/CloudMessagingReceiver.IntentActionKeys

I made a quick debug session and noticed that the FlutterFirebaseMessagingUtils remoteMessageToMap method ignores the action intent and tries to create the typical message map.

flbaue avatar Feb 12 '24 17:02 flbaue