element-hq / element-android

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

Direct message notifications do not produce a sound or vibrate #5828

Open ddevault opened 2 years ago

ddevault commented 2 years ago

Steps to reproduce

  1. Install Element via F-Droid
  2. Enable all notifications in the settings
  3. Confirm that "noisy" notifications are configured with sound + vibrate
  4. Receive a direct message from a friend and observe that the notification is silent

Outcome

What did you expect?

An audible noise and a vibration.

What happened instead?

Silence

Your phone model

Samsung J7

Operating system version

Android 9

Application version and app store

Element 1.4.4; Matrix 1.4.4; olm 3.2.10

Homeserver

Dendrite 0.7.0

Will you send logs?

No

ouchadam commented 2 years ago

I'm unable to reproduce the issue using the google play variant, I'm wondering if it's specific to fdroid :thinking:

iacore commented 2 years ago

Cannot reproduce with latest F-Droid version. Although... (read on)

When Direct Message notification is set to "None", it is considered "silent notification" by Android, it doesn't respect Android's notification setting.

AFAIK, settings in Element controls the Android notification group, and settings of "conversation" feature of Android (per conversation) is ignored. Settings of the "Silent notification" group is ignored too.

Here's what I did:

And ... no sound whatsoever.

leafee98 commented 1 year ago

I experienced this just now!

The direct room's notification came on android as "Silent notifications", even setting as "All". But after I change it to "None" and back to "All", the notification came on as "Noisy notifications".

My user was create by create-account of dendrite earlier than v0.9.2 and its release note shows:

The create-account binary now uses shared secret registration over HTTP to create new accounts, which fixes a number of problems with account data and push rules not being configured correctly for new accounts.

And I remember that people said changing the notification settings is helpful for users created by old create-account (I can't find the chat history however), so I think maybe the fixes of dendrite v0.9.2 are related to this issue.