flutter_background icon indicating copy to clipboard operation
flutter_background copied to clipboard

[Feature Request] Add "Button" to the notification

Open GaelleJoubert opened this issue 3 years ago • 1 comments

Describe the solution you'd like I know that you can have "buttons" in Android persistant notification. It would be nice to have the posibility to add such a button in the notification.

We could set it up in the "androidConfig", by setting a title and a callback.

That would allow us to stop the background execution, or any other actions coded in the callback.

GaelleJoubert avatar Jun 27 '21 16:06 GaelleJoubert

I am also interested in adding actions to the foreground service. There are usescases where you want to give the user the option of stopping the foreground service.

kaciula avatar Oct 21 '22 15:10 kaciula