Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Audio permission not working #92

Open
rodrigohgpontes opened this issue Jul 23, 2020 · 3 comments
Open

Audio permission not working #92

rodrigohgpontes opened this issue Jul 23, 2020 · 3 comments
Labels
bug Something isn't working jasonette-android Jasonette Android related issues

Comments

@rodrigohgpontes
Copy link

Hello, first, thanks for the project! It is great, helping a lot with porting my web app to native.

So, my problem is that I am still getting a permission error for audio recording, even after uncommenting the relevant permissions on AndroidManifest.xlm

I added all these permissions for audio recording the user's voice:
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />

But I still get a permission error running on Android Studio:

W/cr_media: Requires MODIFY_AUDIO_SETTINGS and RECORD_AUDIO. No audio device will be available for recording

I am using HTML5 navigator.mediaDevices.getUserMedia({ audio: true }) to record the audio

@clsource clsource added the jasonette-android Jasonette Android related issues label Jul 23, 2020
@clsource
Copy link
Contributor

Hello. Thanks!.

I'll see what can be done for testing this :)

@clsource clsource added the bug Something isn't working label Jul 23, 2020
@rodrigohgpontes
Copy link
Author

@clsource an update: if I manually give permission to the application to use the microphone, that error goes away, but I get another one: a DOMException for Permission Denied.

I am using this JSON to load my web app:

"body": {
      "background": {
        "type": "html",
        "URL": "<my web app URL>",
        "action": {
          "type": "$default"
        }
      }
    }

Does it create an <iframe> inside the WebView? If it does, I would still have to add allow="camera; microphone" to the <iframe> tag. How would I do it?

Thanks!

@blueone1
Copy link

@rodrigohgpontes Hi Rodrigo! Did you ever find a fix to this? Would you mind posting your process for this as I would love to use the microphone for audio calls using Twilio!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working jasonette-android Jasonette Android related issues
Projects
None yet
Development

No branches or pull requests

3 participants