F
Filament12mo ago
brahim

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
awcodes
awcodes12mo ago
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.
brahim
brahimOP12mo ago
I want just make something to get attention that there is New orders Can you help me please ??
awcodes
awcodes12mo ago
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.
brahim
brahimOP12mo ago
We Can set browser to accepte this ?? There is setting ??
awcodes
awcodes12mo ago
To my knowledge there is no browser setting to allow it. It’s a safety precaution.
brahim
brahimOP12mo ago
There is a way to alert that there New orders ??
awcodes
awcodes12mo ago
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.
brahim
brahimOP12mo ago
Action open URL ?? Possible ?
awcodes
awcodes12mo ago
I don’t understand what you’re asking.
brahim
brahimOP12mo ago
I mean i make action in notification open URL with sound
awcodes
awcodes12mo ago
With a sound no.
brahim
brahimOP12mo ago
Ok thank you so much
Want results from more Discord servers?
Add your server