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

Alexander Sorokin updated CB-11716:
-----------------------------------
    Description: 
In the following example, two separate gallery apps opens and upon selection, 
only the second error callback is called:
{code}
navigator.camera.getPicture(function () {
    console.log('First getPicture() win!');
}, function () {
    console.log('First getPicture() error!');
}, options);
setTimeout(function () {
    navigator.camera.getPicture(function () {
        console.log('Second getPicture() win!');
    }, function () {
        console.log('Second getPicture() error!');
    }, options);
}, 1000);
{code}

  was:
In the following example, two separate galley apps opens and upon selection, 
only the second error callback is called:
{code}
navigator.camera.getPicture(function () {
    console.log('First getPicture() win!');
}, function () {
    console.log('First getPicture() error!');
}, options);
setTimeout(function () {
    navigator.camera.getPicture(function () {
        console.log('Second getPicture() win!');
    }, function () {
        console.log('Second getPicture() error!');
    }, options);
}, 1000);
{code}


> Two intersecting calls to camera.getPicture() fail
> --------------------------------------------------
>
>                 Key: CB-11716
>                 URL: https://issues.apache.org/jira/browse/CB-11716
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: Master
>         Environment: Android 4.4
>            Reporter: Alexander Sorokin
>            Priority: Minor
>              Labels: found-by-ci, triaged
>
> In the following example, two separate gallery apps opens and upon selection, 
> only the second error callback is called:
> {code}
> navigator.camera.getPicture(function () {
>     console.log('First getPicture() win!');
> }, function () {
>     console.log('First getPicture() error!');
> }, options);
> setTimeout(function () {
>     navigator.camera.getPicture(function () {
>         console.log('Second getPicture() win!');
>     }, function () {
>         console.log('Second getPicture() error!');
>     }, options);
> }, 1000);
> {code}



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

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

Reply via email to