I am using Cordova 3.4 with Camera Plugin (https://github.com/apache/cordova-plugin-camera/blob/master/doc/index.md)
When I call
navigator.camera.getPicture(onSuccess, onFail, {
quality: 75,
destinationType: window.Camera.DestinationType.FILE_URI,
sourceType: window.Camera.PictureSourceType.CAMERA,
//allowEdit: true,
//cameraDirection: window.Camera.Direction.FRONT,
//encodingType: window.Camera.EncodingType.JPEG,
//targetWidth: 100,
//targetHeight: 100,
//popoverOptions: window.CameraPopoverOptions,
saveToPhotoAlbum: true
});
function onSuccess(imageData) {
alert(imageData);
}
function onFail(message) {
alert('Failed because: ' + message);
}
this code works for Windows Phone 8.1 but does not work for Android 4.3 (Jelly Bean). When I step into code in eclipse I can see that it successfully saves photo under android temp directory but does not call JavaScript success or fail event on complete, that's why I cannot get image on android.
I both tried on Galaxy Note 2 real device and emulator and did not call onSuccess on both.
Is there any known issues or workaround for this problem?