-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doubled notifications #4152
Comments
Hi @waclaw66 thanks for raising this, unfortunately I don't have a android 11 MIUI device to test on and I'm not familiar with their notification UI changes, would you be able to provide some more information?
|
@ouchadam:
capture.mp4 |
the video really helps clarify, thanks! It's interesting to see the final expanded notification is
rather than
I'll keep investigating and see if I can reproduce on my side and hopefully fix |
one last thing to confirm, does the issue happen for both notification styles? Settings -> Notifications -> Notifications Shade -> android / MIUI when I select MIUI (Pocofone f1 MIUI 12.0.3.0) and turn off animations, I can see flashes of the summary group leaking through, there's also a few reports of the MIUI style having issues with other messaging apps (which I assume is a group summary issue) |
It looks the same for both notification styles. Although I have observed that sometimes (quite seldom) the second notification counts up to 3 only. |
As I discussed this issue with another affected users, the common cause is Wifi. When a message is received using wifi, notification is doubled, on the other hand using mobile data there is only single notification for a message. Strange. |
Very interesting... the difference in network conditions also ties into my current race condition theory My current thinking is that the way we update the android summary group notification (eg how gmail batches notifications under a single expandable notification) is updating out of sync to the individual message notifications, causing the group notification to display in the same place as the normal message, which in turn presents itself as 2 notifications for 1 message event (1 summary update, 1 message update). We can see this happening in your video where the first message that is displayed is "$username: $message", this is a group summary and shouldn't be visible until there's multiple notifications to put in a group. At the moment we create and display all the individual messages in a big loop, each iteration of the loop may take more or less time depending on fetching data, avatars, cancelling previous notifications etc then at the very end we update the group, however if we don't update the group fast enough sometimes wonky things can happen. My plan is a big redesign of the notifications in order to create them all and then display them all in one go, hopefully eliminating the race conditions 🤞 There's also a lot of redundant tl;dr still working on it! |
tentatively fixed in 1.3.7 (let's reopen if the issue still occurs, we may need to go back to the drawing board though 🤔) |
I think it is not completly resolved yet. I'm seeing it time to time even on my new Samsung device (S20 FE Android 11). There is shown (2) for a single notification. |
thanks for the update 👍 when this occurs, does the notification expand to show multiple notifications, or is it still the 1 notification but notified twice? also, would you say the issue occurs less often after upgrading to 1.3.7+? |
There is shown only single notification but with badge (2). It does much less than before 1.3.7. output.mp4Nevertheless it seems the system thinks the notification is duplicated. |
Thanks for the investigation. I think it's totaly torelable now, the only disturbance is the counter. It's much better that before 1.3.7. The issue can be closed. |
thanks for all the help! I'll close this ticket off as a won't fix but we can definitely reopen if we find more OEMs/roms with the same issue If anyone is finding this really troublesome a workaround is to disable the "conversation grouping" notification settings, although it means losing the benefit of conversations
|
Steps to reproduce
Just receive a message.
capture.mp4
What happened?
What did you expect?
Single notification for a message.
What happened?
When single message is received two same notifications are shown for a little while in a row.
I tried to re-register pusher, create a new session, optimized init sync. Nothing helped.
Your phone model
Xiaomi Mi 9T
Operating system version
Android 11
Application version and app store
1.3.1
Homeserver
own
Have you submitted a rageshake?
Yes
The text was updated successfully, but these errors were encountered: