You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a notification programmatically that triggers FirebaseMessaging.onMessageOpenedApp but so far I haven't been able to achieve this.
If I send the notification from the server and add the following:
the FirebaseMessaging.onMessageOpenedApp listener is called successfully when the notification is tapped, but I haven't been able to create a notification programmatically that is able to do the same even though I've added "click_action": "FLUTTER_NOTIFICATION_CLICK" to the PendingIntent in many ways, like for example:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to create a notification programmatically that triggers
FirebaseMessaging.onMessageOpenedApp
but so far I haven't been able to achieve this.If I send the notification from the server and add the following:
{... "data": {"click_action": "FLUTTER_NOTIFICATION_CLICK", ... } }
the
FirebaseMessaging.onMessageOpenedApp
listener is called successfully when the notification is tapped, but I haven't been able to create a notification programmatically that is able to do the same even though I've added"click_action": "FLUTTER_NOTIFICATION_CLICK"
to the PendingIntent in many ways, like for example:And many more.
So how can I achieve this? How is this
click_action
handled by the library?Beta Was this translation helpful? Give feedback.
All reactions