element-hq / element-android

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

Notifications are dismissed too quickly #7001

Open kuon opened 2 years ago

kuon commented 2 years ago

Steps to reproduce

I have a conversation (DM) open in element desktop at the same time as on my element android.

When I get a message, I get a notification, but it is instantly dismissed. I can see them in the notification history of my phone, so they do fire. But they are dismissed so quickly that the notification sound doesn't have time to play.

I am not arguing that dismissing the notification is not the right thing to do (because my computer has the conversation open), but the notification sound should play fully.

Outcome

What did you expect?

The notification sound and/or vibration should be fully played before the notification is dismissed.

What happened instead?

The notification is dismissed too quickly and the sound is not played. A few times I have the start of the notification sound, but it is instantly cut.

Your phone model

Moto G100

Operating system version

Android 12

Application version and app store

1.4.34 with olm 3.2.12 on gplay (f-droid version has same bug)

Homeserver

conduit 0.4.0

Will you send logs?

No

Are you willing to provide a PR?

No

kuon commented 2 years ago

Relevant logs at the time of the notification:

09-04 11:49:14.687  1487  8530 D CompatibilityChangeReporter: Compat change id reported: 182734110; UID 1000; state: ENABLED
09-04 11:49:14.688  1487  8530 D CompatibilityChangeReporter: Compat change id reported: 182734110; UID 1000; state: DISABLED
09-04 11:49:14.905  1487  1487 D CompatibilityChangeReporter: Compat change id reported: 149924527; UID 1000; state: ENABLED
09-04 11:49:14.906  1487  1487 D CompatibilityChangeReporter: Compat change id reported: 132649864; UID 1000; state: DISABLED
09-04 11:49:14.923  1487  1487 E NotificationService: Muting recently noisy 0|im.vector.app|0|null|10179
09-04 11:49:14.949  1487  1487 D CompatibilityChangeReporter: Compat change id reported: 175319604; UID 1000; state: ENABLED
09-04 11:49:14.949  1487  1487 D CompatibilityChangeReporter: Compat change id reported: 175319604; UID 1000; state: DISABLED
09-04 11:49:15.398  1487 12586 W NotificationService: No vibration for canceled notification 0|im.vector.app|1|!9VXcAQJHFnW7uAuSgS:e42.ch|10179
09-04 11:49:15.662  1487  1717 D CompanionDeviceManagerService: onPackageModified(packageName = im.vector.app)
09-04 11:49:15.675  1487  1487 I Telecom : DefaultDialerCache: Refreshing default dialer for user 0: now com.android.dialer: DDC.oR@fls
09-04 11:49:15.725  1487  1751 W VoiceInteractionManager: no available voice recognition services found for user 0
kuon commented 2 years ago

Issue still present with 1.5.2. I see the notification now but they produce no sound and are dismissed very quickly. Note: I have animations disabled in developer settings because Android 12 animations make me sick.

I think it would make sense to keep the notification for at least 5 seconds even if it must be removed because I opened the conversation on my desktop. Also I would love to have a setting were notifications are never removed until I swipe them, for alerting that would be useful.

hardfau1t commented 1 year ago

I am not sure whether its a same issue or not, For me notifications from DM's are not coming,

It happens when

i assume it is something to do with presence/active status of users, because in matrix.org homeserver it is not present(may be i don't know about it),

kuon commented 1 year ago

I think it might be the same issue, as I have the same setup.

wathiede commented 1 year ago

3996 has been reopened, I suspect this is the same issue.