Skip to content
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

Push notifications sometimes disappear immediately #3996

Open
johns2s opened this issue Sep 9, 2021 · 27 comments
Open

Push notifications sometimes disappear immediately #3996

johns2s opened this issue Sep 9, 2021 · 27 comments
Labels
A-Notifications T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@johns2s
Copy link

johns2s commented Sep 9, 2021

In a 1:1 encrypted chat, I've noticed that often (but not always, maybe 2/3 of the time), notifications disappear shortly after they appear and my phone vibrates. When this happens, the dot signifying new notifications on the element app icon also disappears.

I'm currently using version 1.2.1 on a Pixel 5 running Android 11, but I've noticed this issue for a few months on both this device and a Pixel 3, also running Android 11.

Here's a video

@johns2s johns2s changed the title Push notifications sometimes disappear immediately In a 1:1 encrypted chat, I've noticed that often (but not always), notifications disappear shortly after they appear and my phone vibrates. When this happens, the dot signifying new notifications on the element app icon also disappears. Push notifications sometimes disappear immediately in a 1:1 encrypted chat Sep 11, 2021
@johns2s johns2s changed the title Push notifications sometimes disappear immediately in a 1:1 encrypted chat Push notifications sometimes disappear immediately Sep 11, 2021
@saintger
Copy link

saintger commented Sep 13, 2021

I can confirm that I have the same issue on non-encrypted chat.
Previously I had this issue when element was left running in the background on my Mac desktop, but now I also have the bug with no other running instances.
I am running Element version 1.2.0 (no new version available as of today on my phone) on OnePlus 7 Pro with Android 11 (Oxygen OS 11.0.2.1.GM21BA).

@johns2s
Copy link
Author

johns2s commented Sep 20, 2021

I've also experienced this in FluffyChat. Upon further investigation it looks like for some reason these messages are sometimes marked as read erroneously, causing the notifications to disappear.

@vlladdrakk
Copy link

My wife has this issue on her pixel 2 running android 11. Any time I send her a message I see that she has immediately read it, but she hasn't and the notification disappears.

@ouchadam ouchadam self-assigned this Oct 4, 2021
@ouchadam ouchadam added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Oct 4, 2021
@bmarty
Copy link
Member

bmarty commented Oct 4, 2021

It can happen if another client is viewing the room and moves the read receipt, but I guess it is not the case here?

@ouchadam
Copy link
Contributor

ouchadam commented Oct 5, 2021

it would be quite strange for the android app to move the read receipt on receiving the push notification, although the logic does exist on the mark read notification action...

to double check does this mark as read behaviour happen when the android device is off or in airplane mode? this should pinpoint if there's an app problem or a potential client running in the background somewhere else

@lindhe
Copy link
Contributor

lindhe commented Nov 6, 2021

I've also got this issue. Also from a 1:1 encrypted room.

@saintger
Copy link

I have updated to version 1.3.7 and I don't have the issue anymore.
If the issue comes again, I will report it here (and try with the device off !)

@lindhe
Copy link
Contributor

lindhe commented Nov 17, 2021

I have updated to 1.3.7, and now the notification will not disappear after I click it or choose "mark as read" at all! 😅 I have to manually dismiss it by swiping it to the side.

@ouchadam
Copy link
Contributor

ouchadam commented Nov 17, 2021

@lindhe that's unexpected 🤔 would you be able to create a new issue? Would be great to have some details about your device/OS

There were some changes needed for the upgrade to android 12 specifically around notification clicks #4433 If you're running android 12 these might fix it

@lindhe
Copy link
Contributor

lindhe commented Nov 17, 2021

Yeah, I'll create a new issue if I encounter it again. Just thought it was funny if disappearing notifications was fixed by making them permanent. ;) But maybe it was just a fluke, so I'll wait out another one before creating anything.

I'm running Android 11, but expect to upgrade to 12 within a few weeks.

@ouchadam
Copy link
Contributor

fix one issue and create two more 😂 if you are able to reproduce and create a ticket, I'll jump onto it straight away

@ouchadam
Copy link
Contributor

ouchadam commented Nov 18, 2021

I've been able to reproduce the non dismissing notification issue, have a fix on the way #4505

going to close this issue as it seems like the original issue has been fixed, please reopen if anyone encounters the disappearing notifications again

@saintger
Copy link

Unfortunately it seems that I got the issue again.
I am running Element version 1.3.7 (no new version available as of today on my phone) on OnePlus 7 Pro with Android 11 (Oxygen OS 11.0.2.1.GM21BA).
As soon as I send the message, I can see that the message was immediately automatically mark as read even though we didn't read the message.
I can confirm that this is related to Element on Android, because when I switch the phone in airplane mode, the message is not automatically read.

@ouchadam ouchadam reopened this Nov 28, 2021
@saintger
Copy link

saintger commented Feb 1, 2022

Hello,
With version 1.3.15, it is still not working.
I don't receive any notification, but this time the message is not marked as read (which can be considered as an improvement).
I've tried to use the menu entry to debug the notification and all 9 steps executed correctly without any issues.

@ouchadam
Copy link
Contributor

ouchadam commented Feb 2, 2022

@saintger this sounds like you're experiencing element-hq/element-web#5038 (which has a fix on the way!)

@saintger
Copy link

saintger commented Feb 5, 2022

@ouchadam the issue was in the comments in your link: it is due to Adguard which is blocking firebaseinstallations.googleapis.com !
It is strange that it wasn't detected by the menu entry to debug the notification (the 9 steps) but anyway I manually put this domain the whitelist and now notifications seem to work again.
I'll monitor how i goes in the following days/weeks and see if the bug here is happening again.
Thanks for the hint !

@ouchadam ouchadam removed their assignment Sep 27, 2022
@svenb1234
Copy link

svenb1234 commented Dec 14, 2022

This issue appeared on our devices some weeks ago. The only other "client" we have are Smartwatches which show the notification. However it worked before with the watches. Notifications are shown for some seconds and then the element icon disappears from the notification bar.

It seems to happen more often if the screen is on because one is using another app.

@bklaesener
Copy link

On our phones the issue is not limited to quickly disappearing notifications. Additionally, new messages are immediately marked "read". Which then triggers the auto-disappearance of notifications. This behavior exists at least since version 1.5.10 and regardless of whether the app is installed from the Play Store or from F-Droid. A work-around is to always back out of the room into the overview before going back to the home screen or into another app. If the room view is left open in the background, the "auto-read" kicks in.

@svenb1234
Copy link

I was told that a fix has already been merged and will be part of the next release. No idea though when that is.

@7underlines
Copy link

Please release the latest app version on Google Play store.

@svenb1234
Copy link

Yep, element-hq/element-web#7789 seems stalled. Maybe Google did not reply/release yet.

@SPiRiT369
Copy link
Contributor

As I commented in element-hq/element-web#7232, I found that if you press Back in the app to return to the chats list, then notifications will work fine. At least in my Samsung phone it helps. Maybe if you are inside a room/DM, the app thinks you are reading the new messages even though the app is minimized. That's my guess :/

@7underlines
Copy link

With the new released Element App Version 1.5.20 from Google Play Store this issue seems fixed for me.

@TLATER
Copy link

TLATER commented Apr 11, 2023

I am still experiencing this with 1.5.28 from the Google Play Store. I ran into this previously shortly before it was fixed, but it resolved after a full reinstall. It has now reappeared (and been problematic again for a week or two).

I'm not getting any notifications from a 1:1 encrypted chat (don't have other 1:1 chats), but am getting notifications as expected from unencrypted rooms with more users, including bots.

I have a pebble smartwatch, and it does vibrate whenever I get a message, however the notifications are dismissed almost instantly - my phone does not make a sound or vibrate, but occasionally the notification dot does appear for a split second. All notifications are logged in the notification history.

I think it's the same symptoms as people are reporting here?

@Xinayder
Copy link

Xinayder commented Apr 24, 2023

I get a similar issue as described by @TLATER. I don't know what happened to cause the issue, but I am using a bridged room with WhatsApp using the Mautrix bridge and after about a month running the bridge, the notifications for a specific group in WhatsApp stopped working.

I receive a message, my phone vibrates and Element pops up but is quickly dismissed on the status bar. The only way I find out that I received a message for that specific group is that WhatsApp shows up in the notification list (but vibration is muted for it).

I also have problems marking messages as read in that group inside Element, it keeps increasing the amount of unread notifications even though I've read them.

These groups aren't encrypted in Matrix.

@TLATER
Copy link

TLATER commented Apr 24, 2023

Just to contribute my two cents here: I, again, now get notifications after clearing storage/cache and logging back in. I'll make sure to come back if it breaks again; happy to provide any logs that could help identify the issue.

I don't like clearing my login because of vector-im/element-web#16413 and related issues that make encryption a PITA whenever I do so, but at least I don't feel like I need to have my smartwatch on 100% of the time.

@TLATER
Copy link

TLATER commented Jun 9, 2023

It's still happening periodically, sadly. My workaround at this point is just to clear data whenever I notice I missed a notification and re-log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Notifications T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

No branches or pull requests