Hi,
I’m using ngCordova, the camera plugin, here’s a sample of my code.
$scope.takeImg = function() {
var options = {
quality: 100,
destinationType: Camera.DestinationType.NATIVE_URI,
sourceType: Camera.PictureSourceType.CAMERA,
allowEdit: false,
encodingType: Camera.EncodingType.JPEG,
popoverOptions: CameraPopoverOptions,
saveToPhotoAlbum: true,
correctOrientation:true
};
$cordovaCamera.getPicture(options).then(function(imageData) {
console.log(imageData);
}, function(err) {
// An error occured. Show a message to the user
});
};
This takes an image and saves it to the gallery on android, not tested on iOS.
However, no date or geolocation data is saved so all images are in the gallery as being taken in 1970.
Any ideas? Should I save the file in the success function rather than letting it be created automatically.
Thanks