R
R
Roman2019-08-30 11:16:56
Apache Cordova
Roman, 2019-08-30 11:16:56

How to access video camera from hybrid app (Vue/Cordova) in Android Studio?

Good afternoon.
The app is built in Vue and uses JavaScript to access the webcam:
navigator.mediaDevices.getUserMedia
Everything works as it should in the browser.
After building in Android Studio (via Cordova), the application installed and runs on the emulator, but there is no access to the camera.
I did not set any permissions to use the camera.
Please tell me what and where you need to register in order to work as in the browser. If possible - "on the fingers" :)
Thank you.
P.S. Just in case, I’ll clarify that, apparently, native Android functions are not used to access the camera - this is done through WebView (well, in theory)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question