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
Im also looking for the same thing, but not sure if it will work or no
https://stackoverflow.com/questions/77404131/implementing-sound-notifications-for-database-notifications-in-laravel-filament
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
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.
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
That also requires user interaction, so you’ll end up with the same result.
Hello, could you publish your result? I'm facing a similar problem that im getting a. sound whena new notification appears. Thanks in advance 🙂
any solution so far?
Any solutions to this so far?
I am also very interested.
Tks.
???
any solution ?