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

Desktop notifications not working (Ubuntu) #1053

Closed
Jes124 opened this issue Jan 8, 2019 · 35 comments
Closed

Desktop notifications not working (Ubuntu) #1053

Jes124 opened this issue Jan 8, 2019 · 35 comments

Comments

@Jes124
Copy link

Jes124 commented Jan 8, 2019

My system:

  • Operating system: Ubuntu 18.04.1 LTS
  • App version: 2.14.6

I do not receive any notifications while using the app Rochat.Chat desktop (downloaded through Ubuntu software). I did not change anything, and all the others apps do provide notifications (Thunderbird mail, Owncloud, etc.).

When I try the Test desktop notification button no notification appears. Here are my settings:

image

image

image

Also, the notification settings of my desktop should be fine (again, didn't change anything there):

image

EDIT: when I use the Rocket chat through my browser all notifications work.

@leandrohsilveira
Copy link

Same here, Ubuntu 18.10 with app version 2.14.6 installed via Ubuntu Software.

@tassoevan
Copy link
Collaborator

I'm not sure, but maybe this should be classified as a snap issue too. @Jes124, do you installed it through Ubuntu Software, like @leandrohsilveira?

@oserban
Copy link

oserban commented Jan 11, 2019

I think it's definitely a packaging/version issue:

  1. (See screenshot bellow) The latest stable version has been updated to 2.14.6, while the candidate version remained 2.7.0. I reverted the snap to 2.7.0, which was the previous version published on the stable snap channel and it works well. Someone may have pushed 2.14.6 as a stable version instead of candidate.
    image

  2. If you install 2.14.6 version snap packaged, the notifications are not working as reported previously. I can also confirm that. They work well in version 2.7.0. If you want to revert to a working version (2.7.0) you can do a revert until you react version 2.7.0 (do this in a terminal):

sudo snap revert rocketchat-desktop

@oserban
Copy link

oserban commented Jan 11, 2019

I can confirm that issue can be reproduced on 18.04 Ubuntu with rocketchat installed using the deb packaged (2.14.6) published on github release page. So this is not unique to the snap version.

@tassoevan
Copy link
Collaborator

Weird. I personally use Bionic (18.04) and I haven't noticed that, while the built snap looked like it was not following the Gnome look-and-feel. However, I changed the mechanism for notifications to keep some code cross-platform and ironically it failed for Windows and MacOS, which needed the change. I'll revert it.

@oserban
Copy link

oserban commented Jan 13, 2019

The snap version has been updated to 2.14.7, but this made things worst unfortunately. The server settings were lost and I had to redo the setup. Plus there are a bunch of js errors raised for missing code/libraries:

Error: Cannot find module '../dialog'
   at Module._resolveFilename (module.js:543:15)
   at Function.Module._resolveFilename (/snap/rocketchat-desktop/9/resources/electron.asar/common/reset-search-paths.js:35:12)

@tassoevan
Copy link
Collaborator

@oserban Thanks for making me aware of it. No changes in the codebase explain these errors, therefore it must be a building/deploying issue.

@Jes124
Copy link
Author

Jes124 commented Jan 14, 2019

@tassoevan Yes, downloaded through Ubuntu software

@carl-di-ortus
Copy link

I had same problem in Centos7 with xfce4. Found a way to fix it: Menu -> Help -> Reset app data. It warns that configuration will be lost, something something will be lost, but it just actually fixed the problem and nothing else was touched.

I have seen multiple issues here with these notifications, so I suspect some spaghetti code around it exists (haven't checked and not really willing to). Posting here, so that you know it.

@dominikandreas
Copy link

Resetting app data did nothing for me. Notifications haven't been working at all so far no matter what I tried (Snap version 2.14.7, Ubuntu 18.04 with Cinnamon). Notifications work fine in chrome, so it's definitely an issue with the app in my case.

@dattn
Copy link

dattn commented Feb 11, 2019

Same here. Rocketchat Snap version 2.14.7 on Ubuntu 18.10. A new install didn't change anything.
The "Reset app data" possible fix, did not work for me.

@ogustavo-pereira
Copy link

@Jes124
I received notification, but the button "Notification Test " don't work.

Are you testing with open.rocketchat or another server?

@philipooo
Copy link

philipooo commented Feb 15, 2019

We have the same issue but on windows 7/10 (2.14.7). Clicking the TEST DESKTOP NOTIFICATION Button produces a Errormessage in the DevTools console.

Uncaught (in promise) TypeError: g is not a function
at 201f8e192f9ed2ed2b316010222f67a2251c89c8.js:221
at 201f8e192f9ed2ed2b316010222f67a2251c89c8.js:1
at

@tassoevan
Copy link
Collaborator

@philipooo It was an issue recently fixed in Rocket.Chat server. Updating the server to 0.74.3 should do the trick.

@Jes124
Copy link
Author

Jes124 commented Feb 18, 2019

@oguhpereira We make use of an own private server via Rocketchat.

@gsbab
Copy link

gsbab commented Feb 27, 2019

Seems to be fixed in Rocketchat Snap Version 2.15.0 on Ubuntu 18.10

@Jes124
Copy link
Author

Jes124 commented Feb 28, 2019

@gsbab Great, seems indeed fixed. Desktop notifications are working again and amount of unread messages are shown in the upright corner.

@Jes124 Jes124 closed this as completed Feb 28, 2019
@phlegx
Copy link

phlegx commented Feb 28, 2019

Actually for me also the notifications are working. But the System tray icon is still not showing up (Ubuntu 16.04, deb). Not sure if these issues are related. I created an own task:

#1118

@leandrohsilveira
Copy link

leandrohsilveira commented Mar 4, 2019

Updated to 2.15.0 client version and still not working for Ubuntu 18.10.
But the company server is at 0.74.0 now.

@LittleNo
Copy link

Same here, clean install of Ubuntu 18.04, installed snap package 0.74.3

Client is on Windows 10 is version 2.15.2, same issue on mac os Client

Notification-Test works, but no real notifications at all appear

@ghost
Copy link

ghost commented May 6, 2019

Not working. Help.

@HeikoSchlittermann
Copy link

Again not working. Desktop 2.17.7, Server 3.0.2. Linux, Debian 10 with Gnome.

@bingosoft
Copy link

Confirming bug. Ubuntu 18.04. RC 2.17.7. Button "Test Desktop notifications" do nothing

@kovacsdavid
Copy link

Same here. Desktop notifications are not working. Ubuntu 19.04, RC 2.17.7. Test Desktop notifications button do nothing.

@pboesch
Copy link

pboesch commented Mar 13, 2020

Same on Debian 11

@HeikoSchlittermann
Copy link

HeikoSchlittermann commented Mar 14, 2020 via email

@pboesch
Copy link

pboesch commented Mar 16, 2020

It may be related to "mute focused chats", I switched this off and now I got notifications. But I didn't cross-check, if this was the root cause.

Where do you find this setting?

@HeikoSchlittermann
Copy link

HeikoSchlittermann commented Mar 16, 2020 via email

@vincentchalamon
Copy link

vincentchalamon commented Jun 22, 2020

If that could help to debug, I got the following error message on the Developer Tools while trying to use the "test notifications" button:

notifications.js:77
Uncaught (in promise) TypeError: Only absolute URLs are supported
at getNodeRequestOptions (snap/rocketchat-desktop/157/resources/app.asar/node_modules/electron-fetch/lib/index.js:1220)
at snap/rocketchat-desktop/157/resources/app.asar/node_modules/electron-fetch/lib/index.js:1293
at new Promise ()
at snap/rocketchat-desktop/157/resources/app.asar/node_modules/electron-fetch/lib/index.js:1290

Running version 2.17.9 installed from snapstore on Ubuntu 20.04

@holyt
Copy link

holyt commented Jul 19, 2020

Ubuntu 18.04
Installed via snap
Rocket chat client 2.17.10
No notifications, test notification button do nothing.
Get the same error as vincentchalamon

@krystiangorecki
Copy link

Good observation about the reason can be found here: #1509 (comment)

@7system7
Copy link

Ubuntu 20.10
Installed via flatpak (chat.rocket.RocketChat)
Rocket chat client 3.2.2
No notifications, test notification button do nothing. :(

@Darkless012
Copy link

Notifications WERE working on RC client 3.1.1, after upgrading to 3.2.2 it stopped working. Jeez...

@Yattien
Copy link

Yattien commented Aug 3, 2021

Notifications WERE working on RC client 3.1.1, after upgrading to 3.2.2 it stopped working. Jeez...

Upgrading to 3.2.3 fixed it here.

@vtx-team
Copy link

vtx-team commented Dec 6, 2021

Hello, I am using Debian 11 Desktop and had the same symptom
latest/stable: 3.2.2 => No Desktop notification
latest/candidate: 3.3.0-snapshot => No Desktop notification
latest/edge: 3.7.0 => WORKING Desktop notification

Best Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests