I'm creating a QR code reader on a website and now I need to use this site in a Mobile version, so I'm creating a WebView that is opening the site.
In any browser, the QR code reader works, either on the desktop or on the mobile phone. But when I use the webview it does not allow permission to use the Android camera.
I have already inserted all the permissions and checks I found on the internet, but nothing works on any version of Android (I'm using 6.0)
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
I saw an option to insert a JavaScript to call the camera in WebView but I could not find how it can be done.
If necessary, please forward the APP code.