Fix stream notification grouping#12067
Conversation
|
|
Here's an example database: newpipe_subscriptions_202502280744.json There isn't an open issue related to this I could find, it's just an issue I came across while running the app. I dug deeper and found that the stream uploader URL is different from the channel URL, so the notifications aren't properly grouped. |
Stypox
left a comment
There was a problem hiding this comment.
I tried logging all of the channel URLs being used for setGroup and they seem correct so it's just Android deciding not to group them for some reason, sorry for the wrong review. I don't understand how Android groups notifications, because I get a mess of notifications grouped badly, but oh well...
https://developer.android.com/develop/ui/views/notifications/group |
So maybe we need to specify one notification to be the group summary for each channel? |
That's already being done in line 60, the issue was that the group key was different for the summary notification and the other notifications. |
|
I still wonder why they were not grouping well when I tested it (there were like 100s of ungrouped notifications from the same channel), but the code looks indeed correct |





What is it?
Description of the changes in your PR
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.
Due diligence