QR code scanner in a web app

  • Patrick
    Participant
      Has successfully completed the online course Introduction
    4 years ago #29581

    Hello, we would like to integrate a QR code scanner into one of our applications. This application should not be a native app, but a web app. For this reason we get the error message: “Cordova Barcode-Scanner Plugin is not defined! Could not resolve ‘cordova.plugins.barcodeScanner’.”. How can we solve the problem so that users can run the application from the browser to scan a QR code?

    Vitali Kurdasov
    Moderator
      4 years ago #29583
      Up
      1
      Down
      ::

      Hi Patrick,

      the nativ QR-Code feature is only for mobile devices, if you want to decode the QR-Code in your Web Application, you’re going to need a external library (you can try this one https://github.com/LazarSoft/jsqrcode) for it.

      Afterwards you can build a videostream to scan the QR-Code or you can upload the QR-Code as image and decode it with your chosen library.

      Patrick
      Participant
        Has successfully completed the online course Introduction
      4 years ago #29727
      Up
      0
      Down
      ::

      Thank you for your prompt reply! We have now solved it with another external library (https://github.com/cozmo/jsQR). We use both the video stream and the upload function.

    Viewing 3 posts - 1 through 3 (of 3 total)

    You must be logged in to reply to this topic.