Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70747

Capacitor/electron Camera plugin doesn't work

$
0
0

@rfarko wrote:

I have an ionic/capcitor app that uses camera plugin and it works fine on ios and android and in browser. But when I run it as an electron app, the camera cannot take photon.
The camera UI opens and shows the content but when click on take photo button I get this error:

Unable to take photo! DOMException: setOptions failed

I did some search on the web and looks like the “setOptions” has been replaced by passing options to takePhoto function, but looks like capacitor’s PWA elements are not up to date.

Any workaround?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70747

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>