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/01/23 23:13:37 UTC

[jira] [Resolved] (CB-5319) Failed pluginJSON whan calling getPicture

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

Shazron Abdullah resolved CB-5319.
----------------------------------

    Resolution: Cannot Reproduce

No repro. Tried in a new project, works fine.

Added the code below in www/index.js:
{code}
    onDeviceReady: function() {
        function onSuccess() {
            console.log("success");
        }
        function onFail() {
            console.log("fail");
        }
        
        navigator.camera.getPicture( onSuccess, onFail, {
                                destinationType: Camera.DestinationType.FILE_URI,
                                sourceType: Camera.PictureSourceType.CAMERA,
                                allowEdit: true
                              })
        app.receivedEvent('deviceready');
    },

{code}

> Failed pluginJSON whan calling getPicture
> -----------------------------------------
>
>                 Key: CB-5319
>                 URL: https://issues.apache.org/jira/browse/CB-5319
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS, Plugin Camera
>    Affects Versions: 3.1.0
>         Environment: cordova: 3.1.0-0.2.0
> cordova-camera-plugin: 0.2.4
> osx: 10.8.5
> xcode: 5.1.0
>            Reporter: Chakib Benziane
>            Assignee: Shazron Abdullah
>
> Using the latest version of the camera plugin I get the following error on xCode debugger:
> {code}
> [CDVCommandQueue executePending] [Line 117] FAILED pluginJSON = [
>   "Camera1090788746",
>   "Camera",
>   "takePicture",
>   [
>     50,
>     1,
>     0,
>     -1,
>     -1,
>     0,
>     0,
>     true,
>     false,
>     false,
>     null,
>     0
>   ]
> ]
> {code}
> When I call the plugin with the following code:
> {code}
> camera.getPicture( onSuccess, onFail, {
>                         destinationType: Camera.DestinationType.FILE_URI,
>                         sourceType: Camera.PictureSourceType.CAMERA,
>                         allowEdit: true
>                       })
> {code}
> And I get the same error with PHOTOLIBRARY source type



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)