Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

106
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda