Dev-hwang / flutter_foreground_task

This plugin is used to implement a foreground service on the Android platform.
https://pub.dev/packages/flutter_foreground_task
MIT License
140 stars 105 forks source link

feat: adding callback on notification dismiss for Android 14 #231

Closed shani200apps closed 2 months ago

shani200apps commented 2 months ago

Implements onNotificationDismissed callback in TaskHandler for Android 14+ compatibility

With Android 14, users can now dismiss foreground notifications. This introduces the need for applications to handle this dismissal event for proper cleanup and behavior adjustments.

This pull request adds the onNotificationDismissed callback to the TaskHandler interface. This callback will be triggered whenever a notification associated with the task is dismissed by the user.

Please review the implementation details in the provided commits. We welcome any feedback or suggestions for further improvement.