thunderbird-android icon indicating copy to clipboard operation
thunderbird-android copied to clipboard

Notifications are grouped by the system (on Android 16+)

Open mathisdt opened this issue 4 months ago • 4 comments

Checklist

  • [x] I have used the search function to see if someone else has already submitted the same bug report.
  • [x] I will describe the problem with as much detail as possible.

App

Thunderbird for Android

App version

21.0

Where did you get the app from?

F-Droid

Android version

17 (GrapheneOS)

Device model

Pixel 9a

Steps to reproduce

  1. set up a mail account to display notifications on incoming mails
  2. receive 2 or more mails

Expected behavior

each received email results in a separate notification, so the user can access the actions for each email easily or simply dismiss the notification for a single mail by swiping it

Actual behavior

the notifications are grouped and the actions of each individual mail can't be accessed easily: Image

Logs

No response

mathisdt avatar Jul 30 '26 21:07 mathisdt

A possible solution would be to send a custom notification summary prior to the actual notification like below. (This would need to be configurable, as the code below was reported to cause empty notifications to be displayed on some devices.)

val notificationGroupSummary = NotificationCompat.Builder(context, "ANY_NOTIFICATION_CHANNEL")
    .setSmallIcon(R.drawable.ic_launcher_foreground)
    .setGroup("ANY_GROUP")
    .setGroupSummary(true)
    .setSilent(true)
    .setOnlyAlertOnce(true)
    .setLocalOnly(true)
    .setPriority(NotificationCompat.PRIORITY_MIN)
    .build()

val notification = NotificationCompat.Builder(context, "ANY_NOTIFICATION_CHANNEL")
    .setSmallIcon(R.drawable.ic_launcher_foreground)
    .setGroup("ANY_GROUP")
    .setGroupSummary(false)
    .setContentTitle("content title here")
    .setContentText("this is the content text")
    ...
    .build()

// the order is important, the notification group summary needs to be sent first!
notificationManager!!.notify(id, notificationGroupSummary)
notificationManager!!.notify(id, notification) 

mathisdt avatar Jul 30 '26 21:07 mathisdt

Perhaps I've misunderstood this, but I believe this is expected behavior. You can tap the drop down icon on the upper right corner to expand the individual messages, interacting with them on an individual basis, either through notification actions or swiping them away.

Image

dani-zilla avatar Aug 06 '26 17:08 dani-zilla

Perhaps I've misunderstood this, but I believe this is expected behavior. You can tap the drop down icon on the upper right corner to expand the individual messages, interacting with them on an individual basis, either through notification actions or swiping them away.

Yes, that's right, it's possible. But it is an unnecessary indirection (and I think it wasn't there before Android 16 added the automatic grouping), so I think it's a bug because it doesn't work as good as before.

mathisdt avatar Aug 07 '26 08:08 mathisdt

Disagree. The current behaviour is better, as they can all be dismissed at once if required.

tomchiverton avatar Aug 16 '26 16:08 tomchiverton