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

Missing notifications #2453

Open twouters opened 3 years ago

twouters commented 3 years ago

Describe the bug Element misses some notifications, for now no clear sign of the possible cause/trigger.
Some one-on-one rooms trigger notifications, while some others don't.
I have the feeling, though no confirmation that this is consistent, that m.direct rooms with multiple participants (e.g. me, another user and a bot) don't trigger notifications.
Mentions in group chats sometimes don't trigger notifications, but this is certainly not consistent. (i.e. I missed some mentions a few days ago but received notifications for mentions today in the same room.)
Synapse logs do have entries like this after processing the message event: synapse.http.client - 377 - INFO - http_pusher.on_new_receipts-290 - Received response to POST https://matrix.org/_matrix/push/v1/notify: 200

To Reproduce Steps to reproduce the behavior:

  1. Ensure notifications are enabled for all messages in one-on-one chats and mentions in group chats (both plain and encrypted)
  2. Receive a message in one-on-one chats or mentions in group chats
  3. Wait for notification

Expected behavior Receiving notifications is consistent

Screenshots N/A

Smartphone (please complete the following information):

Additional context

twouters commented 3 years ago

Forgot to add that I've set Battery optimization for Element to "Don't optimize"

NHAS commented 2 years ago

This has just started happening to me on synapse 1.50 for some reason

NeXX451 commented 2 years ago

I get notifications only if the app is open, that is when I'm in the app. Please fix this

markusneg commented 2 years ago

I don't get notifications either. Fresh install on Android 10 and Shiftphone 6mq.

Ace0fspadev commented 2 years ago

Same here, on Android 10 and 11.

Retrospector commented 2 years ago

Android 12 too.

noisypine commented 2 years ago

Same problem here on LineageOS Android 11 on Pixel 4a, as well as a Pixel 5 stock Android 11 and a Samsung Note 9

leprasmurf commented 2 years ago

Getting similar reports of missing notifications. Ran through the "Troubleshoot Notifications" on my son's phone and he's still not getting any notifications.

Synapse: 1.65.0 Element installed from gplay store.

VN1977 commented 2 years ago

Hi, Xiaomi POCO X3. Ran through the "Troubleshoot Notifications", everything looks good, but I don't still get notifications.

DocMAX commented 1 year ago

Same here, no notifications

MelBourbon commented 1 year ago

Can confirm this issue on Android 13 (Graphene OS) and Android 12 (Samsung) running a Matrix server with dendrite 0.13.1

Google Play version of element does not show notifications. Sync is happening only after opening the app.

Sporadically this also happens with using ntfy as push method.

snegodick commented 1 year ago

Can confirm this issue on Android 13 (Graphene OS) and Android 12 (Samsung) running a Matrix server with dendrite 0.13.1

Google Play version of element does not show notifications. Sync is happening only after opening the app.

Sporadically this also happens with using ntfy as push method.

Check your DNS in matrix docker-container first. It helped me.

MelBourbon commented 1 year ago

Can confirm this issue on Android 13 (Graphene OS) and Android 12 (Samsung) running a Matrix server with dendrite 0.13.1 Google Play version of element does not show notifications. Sync is happening only after opening the app. Sporadically this also happens with using ntfy as push method.

Check your DNS in matrix docker-container first. It helped me.

I don't use docker. DNS of server is fine. Wonder what DNS should have to do with it if I receive messages and can send them.