F
Filament5mo ago
Nathan

Is there a way to make database notifications play sound for the $recipient?

A client is asking me to add a sound whenever he receives a database notification. How can this be achieved?
7 Replies
kimox
kimox5mo ago
Stack Overflow
Implementing Sound Notifications for Database Notifications in Lara...
I'm currently working on a project using Laravel Filament v3, and I want to implement a feature where a sound plays when a database notification is received. I've successfully set up database
awcodes
awcodes5mo ago
It is possible with custom js, but you have to be aware that browsers by default require user interaction to allow audio playback. So it is impossible to just play an audio file at will. This is a security feature in the browser and has nothing to do with Filament.
kimox
kimox5mo ago
I found a way to do it by writting a js script inside base blade of filament, and yeah it requires user interaction on page so it can be played, i'll try web push notification next time
Tim van Heugten
Tim van Heugten5mo ago
That also requires user interaction, so you’ll end up with the same result.
ПIᄃK
ПIᄃK5mo ago
Hello, could you publish your result? I'm facing a similar problem that im getting a. sound whena new notification appears. Thanks in advance 🙂
Saifallak
Saifallak3mo ago
any solution so far?
Albert Lens
Albert Lens3mo ago
Any solutions to this so far? I am also very interested. Tks.