Cordova plugin with Capacitor and Quasar

1.6k Views Asked by At

I'm building an app with Quasar and Capacitor. I'd like to use phonegap-plugin-barcodescanner(or is there any other option for QR reading?). I've installed plugin with npm i phonegap-plugin-barcodescanner to src-capacitor project. What's my next steps, do I need to register it in capacitor.config? How do I call scan function on it?

1

There are 1 best solutions below

0
On BEST ANSWER

I've figured it out. You need to run npx cap sync in src-capacitor folder. And than the plugin accessible via cordova.plugins.barcodeScanner like it was previously with Cordova