You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
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();
});
};
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm having a problem when implementing startScaning(), it's supposed to run the sccanner several times right?
The text was updated successfully, but these errors were encountered: