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

Callbacks are fired on the capture following the original capture when using fastclick

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 3.1.0
    • None
    • cordova-plugin-camera
    • Mac OSX, Samsung Galaxy S3, Android 4.1.1

    Description

      When running the example camera code from the docs (either with DATA_URL or FILE_URI) on android, neither the success nor error callbacks get called immediately after `.getPicture`.

      However, if `.getPicture` is used again, the callback that should have fired the last time now gets fired, instead of the expected callback.

      So if I take a picture of A, nothing happens. If i now take a picture of B, I get the picture of A.

      Here is the stack trace from logcat:
      https://gist.github.com/ben-ng/7064068

      Possibly related issue:
      https://issues.apache.org/jira/browse/CB-5132?jql=project%20%3D%20CB%20AND%20resolution%20%3D%20Unresolved%20AND%20priority%20%3D%20Major%20ORDER%20BY%20key%20DESC

      The same code works just fine on iOS.

      Once fastclick.js is removed, the issue is resolved.

      Attachments

        Activity

          People

            jcesarmobile jcesarmobile
            benng Ben Ng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: