-
Hello! Thank you for this plugin, we've been waiting for something like this! We need to scan multiple code128 barcodes without the camera view closing. So I followed your setup guide. but im getting an error on Android: I'm using the startScan method example: const startScan = async () => {
document.querySelector('body')?.classList.add('barcode-scanner-active');
const listener = await BarcodeScanner.addListener('barcodeScanned', async
result => { console.log(result.barcode); });
await BarcodeScanner.startScan();
}; I'm getting this error when using startScan method. If i use the scan method (which would be ideal because it has the UI already made) this does not happen. It scans and closes out the camera view. const scan = async () => {
const { barcodes } = await BarcodeScanner.scan({
formats: [BarcodeFormat.Code128]
});
return barcodes;
}; How can i use the scan method to not close and keep scanning barcodes? Thanks in advance for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I'm very glad you found the plugin. I am sure we will find a solution. Does this error also occur with the ML Kit Demo App? |
Beta Was this translation helpful? Give feedback.
I'm very glad you found the plugin. I am sure we will find a solution.
Does this error also occur with the ML Kit Demo App?