How to make sound notification on the website for the Android?

In browsers on the PC is working, but the phone / tablet, how can that be?
if (order.notification == '0') {

function soundClick() {
 var audio = new Audio(); // Create a new Audio element
 audio.src = '/sms.mp3'; // Specify the path to the sound of "click"

 audio.oncanplay = function() {;

 audio.autoplay = true; // autostart
June 10th 19 at 15:14
1 answer
June 10th 19 at 15:16
At the moment, Opera and Chrome for Android require explicit user action to start the audio, explaining that the fact that mobile can be used in areas where there are restrictions on noise, as well as other "confidential" circumstances. In other words without a click it will not start. This action is the community asked to cancel, but was refused, so this limitation is still relevant.

Find more questions by tags JavaScript