Error with camera plugin camera


#1

Community’m having a little problem that I hope you will help me solve, I’m using this plugin to share an image obtained from the camera or photo album on social networks. Using the same methods in iOS works all right, while Android only fails obtaining the image of the library, I’m getting an image URL that does not exist and that is failing.

Here is the code

$scope.getPicture = function(){

var options = {
  quality: 50,
  destinationType: Camera.DestinationType.FILE_URI,
  sourceType : Camera.PictureSourceType.PHOTOLIBRARY,
  popoverOptions: CameraPopoverOptions,
};

Camera.getPicture(options).then(function(imageURI) {
  console.log(imageURI); <---- ERROR
 
    $scope.lastPhoto = imageURI;
    $scope.existe_imagen = true;
  
}, function(err) {
  // error
});
}

#2

I had the same error. I wonder if you already could fix it. Thanks


#3

hi

downgrade plugin may help you.
I had same problem and it is fixed by downgrading plugin
i was using 0.3.6 and downgraded to 0.3.5 and it’s start working.


#4

Hi, i have a problem.
the camera does not open. I hope you will help me solve.


#5

My solution was to update the plugin