element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.33k stars 709 forks source link

Notification keeps resending #1673

Closed Wandelstock closed 2 years ago

Wandelstock commented 4 years ago

If a notification isnt honored, riot.imx keeps resending it. So i get again a notificationssound and it resends it to my smartwatch (4 times)

0.91.4

rarepops commented 4 years ago

I have this, but on the phone. Very weird (Android, latest Element version)

orbitarte commented 4 years ago

Same here last version of element

Wandelstock commented 4 years ago

Still the annoying bug. My smartwatch and tasker is going Bezirk

Ji-eF commented 3 years ago

I also have this bug on my device : Nexus 6P with Lineageos 15 (Androis 8) and Element from F-Droid

Ji-eF commented 3 years ago

It's quite hard to explain, so I hope I'll be clear enough :) Upon a bit of investigation, it seems that the culprit is Element's "Silent notifications" category :

The same behaviour appears while being on a video/phone call and you play around with notification area to make the voice call screen appear and hide ; the silent notification make the phone vibrate and sound, when configured to do so.

ukanuk commented 3 years ago

it makes me very frustrated when Element notifications wake me up in the middle of the night due to this issue.

Notifications will start retriggering every minute because a friend in another time zone sent a message, and if it happens to be the 1% of the time when my Amazfit Bip hasn't detected me going to sleep and automatically turning on Do Not Disturb, then the watch starts vibrating and lighting up every minute and wakes me up. Every other app sends notifications only once.

Even if it only happened once a year, it makes me very frustrated when Element notifications wake me up in the middle of the night.

ukanuk commented 3 years ago

I have this issue with the Google Play version of Element, while the other users say they have it with the F-Droid version. It seems to affect both versions.

Vulkanodox commented 3 years ago

How is this shit not fixed yet? Just started to use element but this is unusable. No wonder why everybody wants to use whatsapp.

ouchadam commented 2 years ago

able to reproduce this using the latest from develop 2b38c607b23b9ad087ac849f9b29e1da31360023 with a Xiaomi Mi Band 5

This happens because each time we receive new events such as a message being read in a room we're retriggering the notification logic, and that logic currently causes a summary notification to be notified if we have a legitimate active notification (such as from a DM)

3657 fixes the issue by only updating the summary notification if a user facing notification has been triggered rather than every time the Sync has new events but doesn't cover the case where mentions/phone facing notifications will still notify the connected band every time

bmarty commented 2 years ago

Fixed in Element 1.3.2 (see details in #3657)