Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11716

Two intersecting calls to camera.getPicture() fail

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: cordova-plugin-camera
    • Environment:

      Android 4.4

      Description

      In the following example, two separate gallery apps open and upon selection, only the second error callback is called:
      (options.sourceType is PHOTOLIBRARY)

      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);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                alsorokin Alexander Sorokin
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: