[ 
https://issues.apache.org/jira/browse/CB-5589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shazron Abdullah updated CB-5589:
---------------------------------

    Component/s: Plugin Camera

> NATIVE_URI returns null on iOS 7
> --------------------------------
>
>                 Key: CB-5589
>                 URL: https://issues.apache.org/jira/browse/CB-5589
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS, Plugin Camera
>    Affects Versions: 3.1.0
>         Environment: iPhone 5 running iOS 7.0.4.
>            Reporter: John M. Wargo
>
> Using Camera.DestinationType.NATIVE_URI on iOS returns null. 
> Also, not sure if this is important, but on Android, it returns the same URI 
> you get with Camera.DestinationType.FILE_URI. 
> Here's my code:
> function takePhoto() {       
>         var cameraOptions = {
>           destinationType : Camera.DestinationType.NATIVE_URI,
>           sourceType : Camera.PictureSourceType.CAMERA
>         }
>         navigator.camera.getPicture(cameraSuccess, cameraError, 
> cameraOptions);        
>       }
>      
>       function cameraSuccess(res) {
>         console.log("Result: " + res);        
>       }
>       function cameraError(errObj) {        
>         console.error(JSON.stringify(errObj));
>         navigator.notification.alert(JSON.stringify(errObj), null, "Camera 
> Error", "Continue");        
>       }



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to