No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Cordova Camera and Barcode scanner plugins not working

    Framework
    2
    5
    2157
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      robshep last edited by

      I have a quasar application, fresh from:

      quasar init
      

      and

      quasar dev -m cordova -T android
      

      I have installed the cordova camera plugin and (a variety of the) barcode scanning plugins that are available.

      In both cases nothing displays. In the case of the barcode scanning plugin, on the second click of my button to call the plugin action it provides an error message that states that Scan is already in progress.

      I can verify that the javascript components have been compiled in as navigator.camera etc exists as it should.

      I don’t know how to verify that the Java classes have been compiled in - can anybody tell me if that is possible?

      Using Chrome’s remote inspector, I have traced the call to an exec() method and (what might be a red herring) I see the following in the device log:

      D/CordovaBridge Ignoring exec() from previous page load
      

      I can’t find anything like this on the Internet which describes this issue for cordova or phonegap and so i thought I would start at the Quasar end first.

      Any pointers or help diagnosing would be gratefully received.

      With thanks

      Rob

      1 Reply Last reply Reply Quote 0
      • R
        robshep last edited by robshep

        I’ve done the following to create a standalone cordova test case …

        cordova create camtest
        cordova platform add android
        

        added

        navigator.camera.getPicture(...)
        

        within the deviceready event handler

        … and this test case without quasar works as expected.

        I wonder how quasar might be upsetting this particular functionality.

        1 Reply Last reply Reply Quote 0
        • R
          robshep last edited by

          I think this may be down to the Android version, but is still quasar specific.

          The quasar app fails on Android 4.4 but works in 5.1 as expected.

          The basic cordova equivalent works on Android 4.4 as well.

          1 Reply Last reply Reply Quote 0
          • R
            robshep last edited by robshep

            This is in fact still a problem.

            I cannot get a quasar app to show camera capture plugins (Camera and Barcode Scanner etc) in Android 5.1 in Genymotion.

            I can use the Camera plugin in a basic cordova app, but in Quasar nothing happens.

            1 Reply Last reply Reply Quote 0
            • G
              gaguerrero last edited by

              Try https://github.com/phonegap/phonegap-plugin-barcodescanner

              1 Reply Last reply Reply Quote 0
              • First post
                Last post