Camera.getPicture().then(function(dataURL) {
setTimeout(function() {
alert("dataURL:" + dataURL);}, 0);
$scope.lastPhoto = "data:image/jpeg;base64," + dataURL;
$scope.photoData = dataURL;
}, function(err) {
alert(err);
}, {
quality: 75,
destinationType: Camera.DestinationType.DATA_URL,
targetWidth: 320,
targetHeight: 320,
saveToPhotoAlbum: false,
cameraDirection: Camera.Direction.FRONT
}
I am trying to get the Camera to face in front, but it doesn't work. Any help?
Also, DestinationType doesn't work. It is giving me nothing now, no alerts or anything.