781flyingdutchman / background_downloader

Flutter plugin for file downloads and uploads
Other
162 stars 76 forks source link

taskNotificationTapCallback not called on group notification #378

Closed mattia-venturini closed 2 months ago

mattia-venturini commented 2 months ago

Describe the bug When I set a taskNotificationTapCallback for a group that is not the defaultGroup, it's never called. I'm on Android 14.

To Reproduce Steps to reproduce the behavior:

  1. Open the example app in the package
  2. Inside the initState add the following method call to the FileDownloader instance
    .registerCallbacks(
    group: 'bunch',
    taskNotificationTapCallback: myNotificationTapCallback)
  3. Click on the button "Load a bunch"
  4. Click on the notification that appears

Expected behavior I should see in the logs that myNotificationTapCallback is called.

781flyingdutchman commented 2 months ago

Notification tap detection for notification groups is currently not supported. Tapping such a notification will simply bring the app to the foreground

mattia-venturini commented 2 months ago

Ok, I see... maybe this behavior should be better documented? I don't see any documentation related here: https://pub.dev/packages/background_downloader#tapping-a-notification