Thanks.
I first installed cordova:cordova-plugin-camera. My app compiled, and ran in the browser. But, the camera does not work, here. Though this seems to be the norm.
I also installed this diagnostics plugin:
Could it be that is not the one you are referring to?
Running my app via Xcode on my iOS device, the app ran, but I do not seem to be able to trigger the camera.
The following seems to work:
document.addEventListener("deviceready", onCDeviceReady, false);
function onCDeviceReady() {
console.log(navigator.camera);
}
This returns:
{“DestinationType”:{“DATA_URL”:0,“FILE_URI”:1,“NATIVE_URI”:2},“EncodingType”:{“JPEG”:0,“PNG”:1},“MediaType”:{“PICTURE”:0,“VIDEO”:1,“ALLMEDIA”:2},“PictureSourceType”:{“PHOTOLIBRARY”:0,“CAMERA”:1,“SAVEDPHOTOALBUM”:2},“PopoverArrowDirection”:{“ARROW_UP”:1,“ARROW_DOWN”:2,“ARROW_LEFT”:4,“ARROW_RIGHT”:8,“ARROW_ANY”:15},“Direction”:{“BACK”:0,“FRONT”:1}}
But, I do not seem to be able to trigger the camera. Or I’m doing something wrong.
Would you be able to share code that successfully triggers the camera?