jerrod-lankford / google-voice-desktop-app

An electron shell wrapper around the google voice website
249 stars 39 forks source link

Sound Notifications in Ubuntu #60

Open DarylO71 opened 3 years ago

DarylO71 commented 3 years ago

Does anyone know if it's possible to implement sound notifications in Ubuntu? I used to have them with the Hangouts Chrome extension a few years ago, then they just stopped several months before I uninstalled it. I'm thinking that it's an Ubuntu issue, but I'm curious if anyone knows of a fix.

eFail commented 3 years ago

In experimenting with the Google Voice website itself, it seems that they don't play a notification sound when a text message is received. They raise a notification, and then leave it up to the browser to handle surfacing that notification to the user. When using Chrome, this gets surfaced to the user on Windows in the form of a Toast, which does play a system sound. When using Firefox, this gets surfaced to the user via a custom piece of UI that Firefox itself renders in the bottom corner of a browser window, and no sound is played.

Since this Electron application is essentially the same as running Google Voice in Chrome, the notifications get surfaced as Toasts on Windows, and do play a sound. I'm not sure what Chrome does on Linux. If you don't hear a sound when using Google Voice within Chrome itself on Linux, then there is no way for you to have sounds. I can confirm (after inspecting the code) that there is no sound functionality built into this Electron application itself. So the functionality you want would have to be implemented specifically for the Linux case.

reesericci commented 3 years ago

does any other app create a notification sound? @DarylO71

DarylO71 commented 3 years ago

@reesericci I recall that BlueMail did. I am now using Vivaldi [Mail], and unfortunately, it does not.

DarylO71 commented 1 year ago

@jerrod-lankford Have you made any progress towards implementing this or figuring out why it doesn't work?