When i use $cordovaCamera to get picture from gallery or take a take a picture using camera so callback method does not call immediately…some time it never call or when i click again to select a picture from gallery then only previous call back calls.
Is any thing i am missing here…
DEVICE S4 4.4.2 ANDROID
$scope.takePictureaaa = function() {
var options = {
quality : 75,
destinationType : Camera.DestinationType.FILE_URL,
sourceType : Camera.PictureSourceType.CAMERA,
allowEdit : true,
encodingType: Camera.EncodingType.JPEG,
targetWidth: 100,
targetHeight: 100,
popoverOptions: CameraPopoverOptions,
saveToPhotoAlbum: false
};
$cordovaCamera.getPicture(options).then(function(imageData) {
alert(imageData);
// Success! Image data is here
}, function(err) {
// An error occured. Show a message to the user
});.