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

105
Views
Microphone denial not properly handled on android app

We have a project where try to access the audio permissions from the andriod app where in my JS functions.(Internally App also runs on a browser) I am doing it like this.

navigator.mediaDevices.getUserMedia({audio: true}).then(function(stream){
// do something with stream
}).catch(function() {
// no media recorder function
})

When the user denies the audio permissions it should go to into catch part but it isn't and showing up something like this on the app.(A modal with "OK")

When the android app asks for permissions of microphone, I click on deny, then it should ideally go into catch block but thats not happening and its getting interfered by GOT IT alert about which I have no idea about.

The problem I see is when I click on deny, getUserMedia throws errors but it doesn't and the promise still remains in pending state with nothing happening

Can anyone please help me with this? Thanks in advance!! enter image description here

about 4 years ago · Santiago Trujillo
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!