RocketChat / Rocket.Chat.Electron

Official OSX, Windows, and Linux Desktop Clients for Rocket.Chat
https://rocket.chat/
MIT License
1.59k stars 702 forks source link

Notifications are not displayed #2767

Open kertiskz opened 11 months ago

kertiskz commented 11 months ago

After upgrading from 6.3.9 to 6.4.0, notifications disappeared for Windows desktop applications version 3.9.5 and below. The tray icon does not display unread messages, and the "Expand when new messages arrive" function does not work. Since the desktop application version 3.9.5 is the latest possible for Windows 7/8.1, this error is very critical, users cannot see unread messages. Relevant for version 6.4.2

Server Setup Information Version of Rocket.Chat Server: 6.4.2 Operating System: synology Deployment Method: docker Number of Running Instances: 1 DB Replicaset Oplog: Enabled NodeJS Version: 14.21.3 MongoDB Version: 6.0.11

roblefko commented 11 months ago

This was working in 6.4.1, but with 6.4.2 the unread message count is not getting updated. I have no unread messages, but the count does not reflect that. When new unread messages are read, the count does not change.

CvH commented 11 months ago

We have the same problem, since updating from 6.3.x to 6.4.x notifications are completely broken for ~70% of the users at the official RC Client, strangely who is affected changes at daily basis. Every RC update is Russian Roulette what get completely broken this time :(

ThalysonD commented 11 months ago

After the updates, it's not possible to upload a profile picture, and I don't receive notifications unless mentioned in the conversation.

n-smeenk commented 11 months ago

We have the same Problem: Server Version: 6.4.2 Client Version: 3.9.6 on Windows 10 Enterprise 21H2

There is a Preference: "Messages -> Unread Tray Icon Alert" but it has no effect on the taskbar. On new messages I get the Windows notification but no change or blinking taskbar icon:

nps4mt6eZk

gabriellsh commented 11 months ago

I had this happen before, it is happened due to a server update. Could you please trying clearing storage data? This fixed it for me.

Keep in mind that clearing storage data will erase all cache and ask for credentials and e2e password again.

image

CvH commented 11 months ago

@gabriellsh

Could you please trying clearing storage data?

completely resetting all app data is usually the first thing we try after yet another bug happen, had no impact at that issue

k3tiv commented 11 months ago

same issue after update RC server from 6.3.9 to 6.4.5. New instal Windows RC desktop client to newest version (from 3.8.1 to 3.9.9) helps for me

n-smeenk commented 11 months ago

I just installed the new Client (3.9.9) and can confirm - it works again! Thanks!

5HIxuWw5Se

CvH commented 11 months ago

I just installed the new Client (3.9.9) and can confirm - it works again! Thanks!

5HIxuWw5Se

We had the same effect, installing 3.9.9 and suddenly it worked for some but not for others. The next day it wasn't working for the ppl where it worked before. A day later for some it worked again and some not. If you ask me it feels like a limitation to just 50 users when it works or similar limitations.

RC introduced other user count based limitations too.

jeanfbrito commented 11 months ago

Ok guys, sorry to know that it isn't working well. Please update to version 3.9.9 and test it. For who it continues with the problem, please take a look at the server devtools console and see if there is any errors and show me what they are. image

As this is a Desktop app issue and it was created at the server repository I didn't see it before. I will be moving it to desktop repo and await for reply with the errors.

tosieb commented 11 months ago

Ok guys, sorry to know that it isn't working well. Please update to version 3.9.9 and test it. For who it continues with the problem, please take a look at the server devtools console and see if there is any errors and show me what they are. image

As this is a Desktop app issue and it was created at the server repository I didn't see it before. I will be moving it to desktop repo and await for reply with the errors.

We have the same problem, but our clients are running on macOS (12, 13 & 14, all macOS versions are affected). It doesn't happen all the time, some messages go through, most don't. All clients are on version 3.9.9 and server 6.4.4. Error_RC_Client

jeanfbrito commented 11 months ago

@kertiskz just released the version 3.9.10. Please test it, it works on Win 7 now. But soon we will be releasing 4.0 that will not have W7 and W8 support.

MoisesBarbachano commented 8 months ago

This is happening also in the version 3.9.10 client desktop windows with server version: 6.5.3. Desktop notifications are failing.

antitiron commented 8 months ago

Hello! Dekstop application version 3.9.11, server version 6.5.3 - notifications don't work for some users. As I understand it happened after disabling pro trial and reverting to community version.

jankubala commented 8 months ago

Hello! Dekstop application version 3.9.11, server version 6.5.3 - notifications don't work for some users. As I understand it happened after disabling pro trial and reverting to community version.

same here (16 users with windows desktop app 3.9.10 or 3.9.11, server 6.5.2) :(

--EDIT after disabling Hardware Acceleration in desktop app (Windows -> Settings ) notifications works again, I wonder if this is a permanent solution...

--EDIT2 disabling Hardware Acceleration helped only on one PC, on others.. nope

--EDIT3 nothing works, it's one big lottery :/

vimu86 commented 8 months ago

Same issue on my ubuntu computer. I have updated to desktop app 3.9.11 - but the problem is still present. I don't know my server version as it is managed by our IT department.

Disabling hardware acceleration did not resolve the issue.

kertiskz commented 8 months ago

The problem is relevant again when upgrading the server to 6.5.3, desktop application version 3.9.11. With server version 6.5.2 everything works fine.

9ken9ken commented 8 months ago

I'm experiencing the same issue. server: 6.5.3 Desktop application version 3.9.12

When I check Account → Preference → Notifications, I see the following message: Desktop notifications are disabled. To enable notifications, please change your browser's settings.

Sometimes notifications may arrive, and in that case, this message disappears, and a "Test Notification" button appears in this settings section.

sgamescz commented 8 months ago

I have rocketchat-server 6.5.2 1599 6.x/stable rocketchat✓ - and Windows 11 desktop clients 3.9.12 and notifications are NOT displayed. i check all setings, enable / disable HW Acc, and nothing work.

without notifications are rockechat useless for us :-/

kertiskz commented 8 months ago

This happens with almost every update, notifications in the desktop application break.

jankubala commented 8 months ago

This happens with almost every update, notifications in the desktop application break.

Does a clean installation of the application and disabling updates (app and server) solve the problem?

k3tiv commented 8 months ago

Does a clean installation of the application and disabling updates (app and server) solve the problem?

sometimes it helps, but only for a while, after a few days the same thing happens again. server: 6.5.2 (Ubuntu 20.04) desktop app: 3.9.7 - 3.9.12 (about 20 Windows users)

kertiskz commented 8 months ago

This happens with almost every update, notifications in the desktop application break.

Does a clean installation of the application and disabling updates (app and server) solve the problem?

You could just not update and everything would be okay. But in June, if you don’t update, they will forcibly turn everything off. Although, what difference does it make that one doesn’t work and the other doesn’t work?

9ken9ken commented 8 months ago

We changed from server version 6.5.3 to 6.5.2, but the issue still persists. We have tried various versions of desktop clients from 3.9.10 to 3.9.12 with server version 6.5.2, but the problem still occurs.

If notifications do not come through, the following message always appears in the notification settings: Desktop notifications are disabled. To enable notifications, please change your browser's settings.

Occasionally, if notifications do come through, a button labeled "Test Notifications" appears in the notification settings, and clicking it triggers notifications. Although notification settings for Chrome and Edge have been set to allow all notifications, there has been no change. What does this message indicate about the browser settings?

I believe there is a hint to this problem in this message

■Server Setup Information Version of Rocket.Chat Server: 6.5.2 Operating System: Redhat9 Deployment Method: docker Client OS:Windows10 64bit (about 20 Windows users) Version of Rocket.Chat Client: 3.9.10 → 3.9.12

notification

antitiron commented 8 months ago

Our solution:

Notifications work, but it's all just until the end of March 2024. We're waiting for the fixes.

yammyi commented 8 months ago

Similarly, Notifications are not displayed on Win 11. Rocket.Chat Version: 6.5.2 Client Win 11 + 3.9.12

The Rocket.Chat server is a local server and non-SSL operation.

I think the cause is that the browser (Chromium) included in Electron does not allow notifications over HTTP. Is there a way to change the settings of the built-in browser so that notifications are sent out in non-SSL environments?

9ken9ken commented 8 months ago

Similarly, Notifications are not displayed on Win 11. Rocket.Chat Version: 6.5.2 Client Win 11 + 3.9.12

The Rocket.Chat server is a local server and non-SSL operation.

I think the cause is that the browser (Chromium) included in Electron does not allow notifications over HTTP. Is there a way to change the settings of the built-in browser so that notifications are sent out in non-SSL environments?

I also believe this view is the most plausible.

Prizrakoleg commented 8 months ago

We are using Snap RocketChat version 6.6.0 and desktop versions 3.9.10, 3.9.11,3.9.12 and this issue occurs on almost all devices. There is sound, but the screen does not expand and the tray icon does not change color. Also, I would like to add about statuses, they live their own lives, some have “Not in place”, others “Online”, although everyone is sitting at the computer and working. We are waiting for a quick solution to this problem

jeanfbrito commented 8 months ago

Ok, I tested the notifications on our server open.rocket.chat and it worked normally on Windows 10, MacOS Sonoma and Ubuntu 22.04 LTS. So, if you are running the latest version of server 6.6.0 and latest version of desktop app 3.9.12 and the problem has happened yet, please open a new issue with the OS and the versions of server and desktop app so I can help you. About statuses, please open a new issue describing it then I can take a look. Thank you!

k3tiv commented 8 months ago

guys, so who opens a new ticket? 6.6.0 did not change anything and I have all the symptoms described in this thread

9ken9ken commented 8 months ago

The same does not improve at all. Is the environment you are trying a non-SSL environment? Please do not close this issue.

Server:6.6.0 Client:3.9.13

jankubala commented 8 months ago

Indeed, why is it closed, there is no point in creating new threads when old one is UNRESOLVED The only one change with new server version is broken status update :[

Server:6.6.0 (local non-ssl) Clients:3.9.12

sulivansantos commented 8 months ago

I have the same problem on Windows 10 using version 6.6.0 of the server on Ubuntu server 22.04, I noticed that the desktop app displays the following message "Desktop Notifications are Disabled. Change your browser preferences if you need Notifications enabled.

rkt sage "Desktop Notifications are Disabled. Change your browser preferences if you need Notifications enabled.

Prizrakoleg commented 7 months ago

On the updated version of the server snap 6.6.1 and client machines version 3.9.14, the problem with notifications remains, there is only sound and nothing else

2782

jankubala commented 7 months ago

question: I see that many users reported that they use RC in a local unencrypted environment, anyone tried to add certificate and check if anything changes with SSL?

kertiskz commented 7 months ago

вопрос: Я вижу, что многие пользователи сообщили, что они используют RC в локальной незашифрованной среде, кто-нибудь пытался добавить сертификат и проверить, не меняется ли что-то с SSL?

I set up a reverse proxy with a self-signed certificate, shared the certificate with users in trusted root certification authorities, and everything works fine.

sgamescz commented 7 months ago

I set up a reverse proxy with a self-signed certificate, shared the certificate with users in trusted root certification authorities, and everything works fine.

i can confirm this. I make https://rocketchat.ourcompany.com with Let's Encrypt certificate, and notifications works now!

jankubala commented 7 months ago

It's goood! I didn't want to give false hope after the SSL implementation worked in my environment also :)

So dear DEVS, please test this bug in an unencrypted env !

jeanfbrito commented 7 months ago

It's goood! I didn't want to give false hope after the SSL implementation worked in my environment also :)

So dear DEVS, please test this bug in an unencrypted env !

I tested it using docker image and worked normally without HTTPS. We will need find some logs that could help show whats happening on your side. I cant help you with just "don't work" from your side, so please provide the logs from the dev tools right clicking on the server icon: image

And please provide what is the test you are doing and is not working. Again, I asked you to test the notifications on our server open.rocket.chat, so please test it there too to make sure that is not a configuration on the user machine. We need to find what is different for you that is making the issue, right? Screen records are welcome as we can understand better what are you seeing and doing.

edlima09 commented 7 months ago

Ola a todos!!! Mesmo problema por aqui!! Sem as notificações o sistema se torna inútil.

jeanfbrito commented 7 months ago

Ola a todos!!! Mesmo problema por aqui!! Sem as notificações o sistema se torna inútil.

Help us showing information about whats happening, please

Prizrakoleg commented 7 months ago

It's goood! I didn't want to give false hope after the SSL implementation worked in my environment also :) So dear DEVS, please test this bug in an unencrypted env !

I tested it using docker image and worked normally without HTTPS. We will need find some logs that could help show whats happening on your side. I cant help you with just "don't work" from your side, so please provide the logs from the dev tools right clicking on the server icon: image

And please provide what is the test you are doing and is not working. Again, I asked you to test the notifications on our server open.rocket.chat, so please test it there too to make sure that is not a configuration on the user machine. We need to find what is different for you that is making the issue, right? Screen records are welcome as we can understand better what are you seeing and doing.

Good evening! I conducted several tests and found the following:

1) Notifications do not work exclusively in the desktop version of rocket.chat, everything works fine in the browser. 2) Notifications work on the open.rocket.chat server 3) Notifications do not work even if you create a new VM, deploy snap rocket.chat of the latest version, do not make any configuration changes, but simply restore the database using the snap run rocket.chat-server.restoredb command. 4) There are cases when, after resetting the application, notifications come, but it is literally for a couple of minutes and then disappear, it does not always work, it is extremely rare to achieve such a result. DevTools will be provided on 03/11/2024.

Prizrakoleg commented 7 months ago

This is something incredibly incomprehensible, I laugh and cry, @jeanfbrito, I hope my video can help you somehow and you will be able to solve this problem.

https://github.com/RocketChat/Rocket.Chat.Electron/assets/126859977/30e523f8-2d1c-401f-a2eb-09fe3efc5658

n289537 commented 6 months ago

We are Windows users because we do not have Notifications so we left RockChat.

k3tiv commented 6 months ago

similarly to me, after 4 yours, this bug caused angry users to abandon rocketchat as a too unstable solution. RIP:/

sgamescz commented 6 months ago

If u use reverse proxy server and have lets encrypt on it, you can simply connect to rocket chat Via https and all works like a charm

Dne út 19. 3. 2024 18:59 uživatel k3tiv @.***> napsal:

similarly to me, after 4 yours, this bug caused angry users to abandon rocketchat as a too unstable solution. RIP:/

— Reply to this email directly, view it on GitHub https://github.com/RocketChat/Rocket.Chat.Electron/issues/2767#issuecomment-2007812168, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK3MPVYDQOMUNN45L7674J3YZB4HXAVCNFSM6AAAAAA7DM3K5GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBXHAYTEMJWHA . You are receiving this because you commented.Message ID: @.***>

MarkVorkosigan commented 6 months ago

@sgamescz Could you please give instructions how to set up reverse proxy? I don't have Internet on my server so I need to use self-signed certificate. And what with the clients that connect via http? There is no way to automatically change their server address.

Prizrakoleg commented 6 months ago

/

@sgamescz Could you please give instructions how to set up reverse proxy? I don't have Internet on my server so I need to use self-signed certificate. And what with the clients that connect via http? There is no way to automatically change their server address.

You can correct it in the config file .the url of the server (config.json) and distribute it through group policies, which is located along the way C:\Users\user\AppData\Roaming\Rocket .Chat\config.json. (Most likely, users will need to re-enter their username and password)

AlaskaMoon commented 6 months ago

I found out that browsers like firefox and chrome block notifications from websites without an SSL certificate by default. Could this be the reason? For this reason, I cannot activate notifications in Rocketchat via the browser

MarkVorkosigan commented 6 months ago

@AlaskaMoon I found this recommendation when I was trying to enable WebRTC via http in this browsers: https://stackoverflow.com/questions/52759992/how-to-access-camera-and-microphone-in-chrome-without-https This doesn't concern Rocketchat but the problem seems to be very similar. In my case notifications don't work with 3.9.14 client but work with 3.8.12.