[
https://issues.apache.org/jira/browse/CB-6627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13988480#comment-13988480
]
ASF GitHub Bot commented on CB-6627:
------------------------------------
Github user shazron commented on the pull request:
https://github.com/apache/cordova-plugin-camera/pull/20#issuecomment-42091340
How are you testing this? My device is non-responsive when I integrated
your code and do:
```
navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
destinationType:
Camera.DestinationType.NATIVE_URI,
sourceType :
Camera.PictureSourceType.CAMERA,
saveToPhotoAlbum: true
});
function onSuccess(imageURI) {
alert(imageURI);
}
function onFail(message) {
alert('Failed because: ' + message);
}
```
I pulled your changes into my branch:
https://github.com/shazron/cordova-plugin-camera/tree/CB-6627
> Make dest NATIVE_URI compatible with source CAMERA
> --------------------------------------------------
>
> Key: CB-6627
> URL: https://issues.apache.org/jira/browse/CB-6627
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Camera
> Environment: iOS
> Reporter: Shazron Abdullah
>
> When using the camera in iOS, UIImagePickerControllerReferenceURL does not
> exist because the image only exists in memory immediately after taking a
> photo. This waits for the image to be written to disk before firing the JS
> callback when Camera.SourceType.CAMERA, Camera.DestinationType.NATIVE_URI,
> and saveToPhotoAlbum=true are used together in iOS.
> Pull request: https://github.com/apache/cordova-plugin-camera/pull/20
--
This message was sent by Atlassian JIRA
(v6.2#6252)