If you are building a web-based dashboard, you can trigger the sound manually when a new notification arrives. javascript
const playPuSound = () => { const audio = new Audio('https://your-server.com'); audio.play().catch(error => console.log("User interaction required first")); }; Use code with caution. Copied to clipboard 5. UI/UX "Fan Mode" Toggle SГ¶nmez Reis (Pu) Bildirim Sesi
When triggering a local or push notification, set the sound property: If you are building a web-based dashboard, you
let content = UNMutableNotificationContent() content.title = "New Message" content.body = "Sönmez Reis is calling!" content.sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: "sonmez_pu.wav")) Use code with caution. Copied to clipboard 4. Implementation for Web (Browser) SГ¶nmez Reis (Pu) Bildirim Sesi