I am trying to create an app which allow user to quickly take action on push notification without need to go to app. Currently many apps ( including youtube ) allow this feature to take action right from notification drawer.
Solution should be to have a provision to show custom button using firebase push notification and there should be a listener function for user action.
sample image of button is as follows.

This feature would be great!
Hello - FCM doesn't support this functionality. The solution would be to send a data message via FCM and create your own notification using https://pub.dev/packages/flutter_local_notifications
@Ehesp this would work for all cases except for Android when the app is terminated, correct? Do you know if the firebase_messaging package will support data messages when the app is terminated any time soon?
Also it appears that flutter_local_notifications doesn't support action buttons yet either: https://github.com/MaikuB/flutter_local_notifications/issues/17
Can you reopen this as a request for firebase_messaging? OneSignal does offer this so it seems that it is possible.
I would support to reopen this issue. I am also having similar requirement. I feel it's good to have this feature in firebase messaging.
Most helpful comment
I would support to reopen this issue. I am also having similar requirement. I feel it's good to have this feature in firebase messaging.