You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2017/01/20 13:31:26 UTC
[jira] [Commented] (CB-12371) "Selection Cancelled" error
[ https://issues.apache.org/jira/browse/CB-12371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15831743#comment-15831743 ]
jcesarmobile commented on CB-12371:
-----------------------------------
In which platform do you get it?
Can you describe better the "when it don't works"?
Canceled means the user canceled the selection of the picture
> "Selection Cancelled" error
> ---------------------------
>
> Key: CB-12371
> URL: https://issues.apache.org/jira/browse/CB-12371
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Camera
> Affects Versions: 2.3.0
> Reporter: Aurelio Merenda
>
> Hello and congratulation for your cordova-plugin-camera!
> I have an issue with getPicture() call: it works most of the time, but, when it don't works, it returns a message "Selection cancelled".
> This is my code:
> if(window.cordova && navigator && navigator.camera){
> // convertImage is a my method to manage image, it works
> navigator.camera.getPicture(convertImage, function(message){
> // message is "Selection cancelled"
> }, {
> quality: 70,
> destinationType: Camera.DestinationType.FILE_URI,
> sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
> allowEdit: false,
> targetWidth: 1024,
> targetHeight: 1024,
> encodingType: Camera.EncodingType.JPEG,
> mediaType: Camera.MediaType.PICTURE
> });
> }
> PS I have 2.3.1 version of cordova-plugin-camera, but I don't found it on JIRA version field.
> Thanks,
> Aurelio Merenda
--
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