You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Dagfinn Parnas (JIRA)" <ji...@apache.org> on 2016/03/14 10:39:33 UTC

[jira] [Comment Edited] (CB-10270) camera.getPicture() returns an empty string

    [ https://issues.apache.org/jira/browse/CB-10270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15192954#comment-15192954 ] 

Dagfinn Parnas edited comment on CB-10270 at 3/14/16 9:38 AM:
--------------------------------------------------------------

[~jcesarmobile] can confirm that in general it's working with version 2.1.1.
Have however discovered that with Google Drive returns a blank string. 

Testing on Android 6.0.1 and using the following options
        navigator.camera.getPicture(onPhotoURISuccess, onFail, {
            quality: 50,
            correctOrientation: true,
            destinationType: destinationType.FILE_URI,
            sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
            mediaType: Camera.MediaType.ALLMEDIA,

        });

[~riknoll] Reported this as https://issues.apache.org/jira/browse/CB-10857


was (Author: dparnas):
[~jcesarmobile] can confirm that in general it's working with version 2.1.1.
Have however discovered that with Google Drive returns a blank string. 

Testing on Android 6.0.1 and using the following options
        navigator.camera.getPicture(onPhotoURISuccess, onFail, {
            quality: 50,
            correctOrientation: true,
            destinationType: destinationType.FILE_URI,
            sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
            mediaType: Camera.MediaType.ALLMEDIA,

        });

[~riknoll] Should this be reported as a separate issue?

> camera.getPicture() returns an empty string
> -------------------------------------------
>
>                 Key: CB-10270
>                 URL: https://issues.apache.org/jira/browse/CB-10270
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 2.1.0
>         Environment: Android 4.4.2 (api 19)
>            Reporter: Alexander Sorokin
>            Priority: Critical
>              Labels: android, mustfix, reproduced, triaged
>         Attachments: mobilespec-camera.7z
>
>
> Code sample to reproduce:
> {code}
> navigator.camera.getPicture(onSuccess, onFail, { 
>     destinationType: Camera.DestinationType.FILE_URI,
>     sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
>     correctOrientation: true
> });
> {code}
> {{onSuccess}} is called with an empty string as an argument.
> if {{correctOrientation}} is {{false}}, everything works as expected.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org