cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-5589) NATIVE_URI returns null on iOS 7
Date Mon, 05 May 2014 22:15:16 GMT

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

Shazron Abdullah resolved CB-5589.
----------------------------------

    Resolution: Duplicate

> 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: 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:
> {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");
       
>       }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message