Why cant I save or click the checkmark of the Camera plugin?
though the back and cancel button are working fine only the check/save button is not function when I taking photo…
What I am missing?
$scope.takePicture = function () { var options = { quality: 100, destinationType: Camera.DestinationType.FILE_URI, sourceType: Camera.PictureSourceType.CAMERA, encodingType: Camera.EncodingType.JPEG, cameraDirection: 1, saveToPhotoAlbum: true }; CordovaSRV.takePicture(options) .then(function (imageURI) { console.log(imageURI); }, function (error) { console.error(error); }); };
My Service
`this.takePicture = function (options) {
var deffered = $q.defer();
$ionicPlatform.ready(function () {
$cordovaCamera.getPicture(options)
.then(function (imageData) {
deffered.resolve(imageData);
}, function (error) {
deffered.reject(error);
});
});
return deffered.promise;
};`