Camera not loading in ios


#1

Hi,

I couldnt get the camera object to load in iOS. I’m using an iPod Touch to test. Have also used iPhone 6, but still not working.

navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
destinationType: Camera.DestinationType.DATA_URL,
sourceType: Camera.PictureSourceType.PHOTOLIBRARY });

  function onSuccess(imageURI) {
      //var image = document.getElementById('myImage');
     $scope.image = imageURI;
  }

  function onFail(message) {
      alert('Failed because: ' + message);
  }

I keep getting error that says “Camera.DestinationType.DATA_URL” is undefined. I’m using the latest cordova camera plugin. It works fine on android tho.