Hi! I’m trying to use the BarcodeScanner plugin from Ionic Native but it doesn’t work. When I tried debugging it this is what I got:
D/DecodeHandler: Found barcode in 150 ms
D/Capacitor: Unable to find a Capacitor plugin to handle requestCode, trying Cordova plugins 47740
D/ViewRootImpl@a7f3c53[MainActivity]: stopped(false) old=true
D/Capacitor: App restarted
Here’s my code:
const scanCode = async() => {
var barcodeData = await BarcodeScanner.scan();
var data = barcodeData.text;
//do something with data
)
Please let me know what other information I can provide. Thanks!