Home > Enterprise >  Open camera fron inappbrowser in cordova
Open camera fron inappbrowser in cordova

Time:11-18

I have application developed using Apache Cordova, within that application I am using " inappbrowser ". Now the requirement is to open Camera from the inappbrowser, I'm not able to figure out how to achieve this.

For developing this application I am using JQuery, bootstrap.js.

Now i'm using navigator.mediaDevices.getUserMedia in Inappbrowser. but i get this error

NotAllowedError: Permissin denied

But i want to open camera and gallery instead of this.

CodePudding user response:

In order to launch camera in browser, it must be over HTTPS connection, nothing over HTTP or localhost.

CodePudding user response:

There is a feature request for the InAppBrowser in development. You might want to try it out at your own risk.

https://github.com/apache/cordova-plugin-inappbrowser/pull/968

  • Related