Open SebastianJurupe opened 1 year ago
const startScan = async () => {
// Check camera permission
// This is just a simple example, check out the better checks below
await BarcodeScanner.checkPermission({ force: true });
// make background of WebView transparent
// note: if you are using ionic this might not be enough, check below
// BarcodeScanner.hideBackground();
await BarcodeScanner.startScanning(undefined, async (result) => {
if (result.hasContent) {
console.log(result.content); // log the raw scanned content
}
await BarcodeScanner.resumeScanning();
});
};
I'm having a problem when implementing startScaning(), it's supposed to run the sccanner several times right?