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

102
Vistas
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
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