I wanted to load a website in Android WebView which uses a device camera. But on Android WebView I'm not able to access the device camera
When I run: navigator.mediaDevices.getUserMedia({ video: true }) in JavaScript It does not ask for permission for camera and gives following error:
I have added the following permissions in AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
<uses-feature android:name="android.hardware.camera"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
Thank You!!
