Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

365
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!