Database Notification
I implement my app with database notification all is good but i want play sound in browser when i reveive notification there any idea please help me
13 Replies
There’s ways to do it. It’s less to do with filament and more of custom js and event listeners. But you’re going to have problems with it because browsers require users to interact with audio before it will play it. It’s an accessibility issue.
I want just make something to get attention that there is New orders
Can you help me please ??
I can’t do anything to change the browsers behavior and you can’t force it.
The notification component has the indicator for a reason. It’s going to be the best option.
Browsers just won’t let you force play any audio.
We Can set browser to accepte this ??
There is setting ??
To my knowledge there is no browser setting to allow it.
It’s a safety precaution.
There is a way to alert that there New orders ??
The db notifications icon will have a red indicator on it with a count of the notifications. And will not have an indicator if there are no notifications.
You just have to tell filament to use the db notifications.
Action open URL ?? Possible ?
I don’t understand what you’re asking.
I mean i make action in notification open URL with sound
With a sound no.
Ok thank you so much