I'm using the following code to try to select a photo from the iOS photo library:
navigator.camera.getPicture(this.onCaptureSuccess, this.onCaptureFail, {
allowEdit: true,
correctOrientation: true,
destinationType: Camera.DestinationType.FILE_URI,
soureType: Camera.PictureSourceType.PHOTOLIBRARY,
targetHeight: 315,
targetWidth: 320
});
I'm using iOS 7 (7.0.4) on an iPhone 5s and PhoneGap 3.3.0. No matter what I do it always brings the camera up. What am I doing wrong?
Think I found it:
soureType: Camera.PictureSourceType.PHOTOLIBRARY,
should be:
sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
sourceType has a typo in it. Maybe thats it?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With