I am making an application which has to take photo in the background, i.e without interaction. The one am currently using is cordova-plugin-camera but this opens up a interactive option from which the user has to manually click the photo.
navigator.camera.getPicture(successCallback, FailCallback, {
destinationType: Camera.DestinationType.DATA_URL,
cameraDirection: 1,
quality: 25,
targetWidth: 300,
targetHeight: 300
});
use CameraPictureBackground plugin:
Example code:
You will find your pictures under CameraPictureBackground directory in your device acrhive.