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
Has successfully completed the online course Intermediate (200)
Has successfully completed the online course Basics (100)
Has successfully completed the online course Advanced (310)
Has successfully completed the Intermediate Certification
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
Has successfully completed the online course Introduction
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.