Camera and Mic not accessible
Describe the bug TWA WebView Fallback lacks ability to access camera and microphone. During Pandemic many organizations are using Audio / Video chat in their app. This issue is a show stopper for them.
To Reproduce Steps to reproduce the behavior:
- Create TWA which uses Camera / Microphone & install on your phone ( using www.pwabuilder.com )
- Uninstall / Disable all other browsers on phone.
- Launch the app
- Webview will open , but camera and mic functionality will not be available Expected behavior WebView fall back must be coded to handle Camera, Mic , Gelocation and similar services by default.
Did this ever used to work No
Screenshots
Code Snippets Solution to this as described below must be included by default in webview fallback: https://stackoverflow.com/questions/40659198/how-to-access-the-camera-from-within-a-webview
Smartphone (please complete the following information):
- Device: Any Android device
- OS: Any Android
- Browsers Installed : All disabled
- Browser Versions : NA
- android-browser-helper library version : Default of PWA builder www.pwabuilder.com
Additional context Will be happy to help if anything I can do
And here are necessary steps for enabling mic: https://stackoverflow.com/questions/40236925/allowing-microphone-accesspermission-in-webview-android-studio-java
(This is just a note for developers. Probably the only solution is use customtabs instead and wait for the fix.)