1

I'm going crazy trying to set up the front camera to use an app that take pictures using the front camera.

As I checked in the API documentation it should be something like this:

var options = {
    quality: 50,
    destinationType: Camera.DestinationType.DATA_URL,
    sourceType: 1,
    encodingType: 0,
    cameraDirection: Camera.Direction.FRONT
};

navigator.camera.getPicture(onSuccess, onFail, options);

But anything happens. I also tried cameraDirection : 1, but it had the same result. Always back facing camera.

Anyone knows if this Android Quirk its true?

Android Quirks:

Any cameraDirection value results in a back-facing photo.

Radu
  • 8,561
  • 8
  • 55
  • 91

0 Answers0