Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable default alert sound for Firefox web notifications

I'm using the Web Notification API to show desktop notifications from my web app under OSX.

In Firefox only, when a notification is triggered, it also plays a sound (in Safari and Chrome, using the exact same code, only the notification displays and there's no accompanying sound effect).

I'd like to disable the notification sound in Firefox, but I can't find anything in the documentation about controlling it. Is this possible?

like image 305
daGUY Avatar asked Dec 15 '14 19:12

daGUY


2 Answers

On OS X, go to System Preferences, then Notifications. Choose Firefox and uncheck Play sound for notifications to get rid of the sound.

like image 138
Fred Avatar answered Nov 06 '22 06:11

Fred


The Web Notification API now has the config option silent, but support is patchy, Chrome v43+, Firefox (not yet supported).

I'd suggest building silent into your notifications then if/when Firefox support it, it will just work.

like image 11
muttonUp Avatar answered Nov 06 '22 06:11

muttonUp