You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2014/05/02 08:25:15 UTC
[jira] [Updated] (CB-5589) NATIVE_URI returns null on iOS 7
[ https://issues.apache.org/jira/browse/CB-5589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-5589:
---------------------------------
Description:
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}
was:
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");
}
> 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:
> {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)