-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Defaults for 1:1 chat notifications are not obeyed for Android push notifications #2537
Comments
This comment was originally posted by @jittygitty at matrix-org/dendrite#2537 (comment). @PaulosV Try a trigger to populate the notifications rules, such as for element android see: element-hq/element-android#6115 (comment) |
This comment was originally posted by @S7evinK at matrix-org/dendrite#2537 (comment). Possibly related to Dendrite not sending the notification count to the push gateway - should be fixed by matrix-org/dendrite#2683. |
This comment was originally posted by @PaulosV at matrix-org/dendrite#2537 (comment).
I was trying to work out how to populate the rules, but I have tried to turn the notifications off and on several times, and the notifications rules were definitely present. And the notifications eventually worked, but not for the mentioned 1:1 chats.
I'll check but when I set the notifications to "All messages", it worked, so it was really something wrong with the "default" option - the original Element for Android did not have that option for 1:1 chats, instead there was an "All messages" and "None". |
This comment was originally posted by @S7evinK at matrix-org/dendrite#2537 (comment). Ah, okay. DELETE FROM userapi_account_datas WHERE type = 'm.push_rules' AND localpart = '$yourUserLocalpart' They will be recreated on the next notification. You'll need to do an initial sync after that, so Element Android fetches the newly created rules. If you say "All messages" and "None", those seem to be the normal options for encrypted rooms. |
This comment was originally posted by @PaulosV at matrix-org/dendrite#2537 (comment). Thanks for the tips, I've tried to update Dendrite to 0.10.4, removed the rules from the database, signed out and back in, and created an entirely new 1:1 E2E-encrypted direct messaging (it's over federation, btw). Still no push notifications in my SchildiChat (Android) without manually changing to "All messages" in the menu. Edit: The 1:1 conversation was created via federation from Element on desktop. |
This comment was originally posted by @PaulosV at matrix-org/dendrite#2537 (comment). Actually, here's the interesting part now. When I create the conversation on my Dendrite homeserver - either rfrom my SchildiChat Android, or the Element on desktop, then the notifications are set up correctly and they work on my Android! The SchildiChat client still shows "Default" for the notification settings, but it works. But when I do it the other way around - I create the channel on the other end of the federation (Synapse homeserver), then I get no push notifications at Dendrite unless I change the setting from "Default" to "All notifications". |
This issue was originally created by @PaulosV at matrix-org/dendrite#2537.
Background information
Description
Steps to reproduce
The Android client in the background gets no notification. It should have gotten something. It receives all the notifications when it goes back in the foreground.
The text was updated successfully, but these errors were encountered: