Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error callback not fired if user denies mic access #267

Open
3 tasks done
vitto32 opened this issue Feb 19, 2020 · 2 comments
Open
3 tasks done

Error callback not fired if user denies mic access #267

vitto32 opened this issue Feb 19, 2020 · 2 comments

Comments

@vitto32
Copy link

vitto32 commented Feb 19, 2020

Bug Report

Problem

I'm trying to use startRecord on Android but no callback is fired if user denies mic permission.

What is expected to happen?

Error callback (third argument of Media constructor) should be fired if the user refuses to give RECORDING permission.

What does actually happen?

No callback (success, error or status) is fired.

Information

If the user denies grants, the second time startRecord is called also success and status callbacks are disabled (even if the user give the permissions). Restarting the app is required to make it work.
Logcat says: Attempted to send a second callback for ID: Media1253750911

This also happens using the code from the startRecording section in the README,

Environment, Platform, Device

Android 9.0

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@dcrousset
Copy link

I have the same problem. did you found a workaround ?

Thx

@PabbleDabble
Copy link

I'm in the same boat, really hard to get any feedback from the plugin on this without permissions. This issue appears related to this one - #348

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants