Flutterfire: [firebase_messaging] Action Buttons and receiver are needed.

Created on 23 Nov 2019  路  4Comments  路  Source: FirebaseExtended/flutterfire

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.

flutter Push Notification

messaging wontfix documentation enhancement

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.

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings