[SOLVED] Notifications with Sound?

Answered Closed
0
0

 

 

Hi In the WiseJ Extensions.. the Notifications work great!.. but..

 

Can I add a Sound for this notification?, for example if you use the Whatsapp WebApp, every notification has a sound.

 

Is possible?..

Thanks

  • You must to post comments
Best Answer
0
0

Whatsapp either uses an html element or custom code in a plugin. The web notification api has a sound property but it’s not supported by any browser: https://developer.mozilla.org/en-US/docs/Web/API/notification/sound.

The Wisej Notification extension is to show desktop notifications, they are useful when the browser is minimized or behind another window since they show on your desktop. You can always play a sound using javascript:

var audio = new Audio("http://www.noiseaddicts.com/samples_1w72b820/2534.mp3");
audio.play();

Best,

Luca

 

  • You must to post comments
Showing 1 result