K
K
Kirill Gavrilov2019-11-01 06:55:55
JavaScript
Kirill Gavrilov, 2019-11-01 06:55:55

How to make camera usage confirmation in JavaScript?

Hello!
I am currently working with Corodova and at the moment there is a very complex service written in Angular for the desktop and I need to open this site in a mobile application on Cordova (as if by an internal Cordova browser).
I used a simple function "window.open("...")".
Inside the application there is a "Take a picture" function, but it does not work for me, because I need to confirm the use of the camera, and since there is no address bar in cordova, the window for allowing the use of the camera does not appear. Who faced this, how did you solve it? Is it possible to do validation on JS?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Afanasy Zakharov, 2019-11-01
@afanasiyz

there seems to be an InAppBrowser plugin in cordova, dig towards it.
Perhaps in the config file of your Cordova project, you should indicate that the application needs access to the camera.

V
Vladimir Maltsev, 2020-12-31
@mrhard

Use plugin from cordova

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question