Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

366
Vistas
Chrome (android) how to allow playing audio without user interaction?

I am developing a web application with HTML and Javascript and one of the functions of that web applications is that it alerts user with blinking and audio signal when certain events happen.

Sometimes users would just have that webapp open and not interact with it, only waiting for alert. The problem here is, that chrome doesn't allow sound, until user have already interacted with webpage, so I cannot alert users with audio signal.

Is there a way to bypass this? Is there a way to allow this in Google Chrome settings? It would be okay if it would be on a local level only, as said application will only be running on a few Android tablets on a Google Chrome.

edit:
code for playing sound:

let audio = new Audio('Sound/gentle_sms.mp3');

function PlaySound()
{
    audio.loop=true;
    audio.play();
}

function StopSound()
{
    audio.pause();
    audio.currentTime = 0;
}

function PlaySound() is called from socket event listener

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda