F
Filament11mo 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?
9 Replies
kimox
kimox11mo 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
awcodes11mo 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
kimox11mo 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 Heugten11mo ago
That also requires user interaction, so you’ll end up with the same result.
ПIᄃK
ПIᄃK11mo 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
Saifallak9mo ago
any solution so far?
Albert Lens
Albert Lens9mo ago
Any solutions to this so far? I am also very interested. Tks.
IAC
IAC2mo ago
???
RawaN
RawaN4w ago
any solution ?
Want results from more Discord servers?
Add your server