android-browser-helper icon indicating copy to clipboard operation
android-browser-helper copied to clipboard

Camera and Mic not accessible

Open varundabke opened this issue 4 years ago • 1 comments

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:

  1. Create TWA which uses Camera / Microphone & install on your phone ( using www.pwabuilder.com )
  2. Uninstall / Disable all other browsers on phone.
  3. Launch the app
  4. 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

varundabke avatar Jun 19 '21 05:06 varundabke

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.)

kudlav avatar Mar 10 '22 07:03 kudlav