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
I know it is only V1.0.1 and more features are coming. It would be nice for it not to throw console.log/errors when i close the scanner. This occurs both on android, IOS and web
The console.log comes every time i close the scanner.
If I close the scanner before the scanner is ready to scan, it throws the error. It seems wierd that closing the scanner fast after opening it should cause errors.
I use the scanner like this
`import { CapacitorBarcodeScanner, CapacitorBarcodeScannerTypeHintALLOption, CapacitorBarcodeScannerScanOrientation, CapacitorBarcodeScannerCameraDirection, type CapacitorBarcodeScannerOptions, type CapacitorBarcodeScannerScanResult, CapacitorBarcodeScannerAndroidScanningLibrary } from '@capacitor/barcode-scanner';
I know it is only V1.0.1 and more features are coming. It would be nice for it not to throw console.log/errors when i close the scanner. This occurs both on android, IOS and web
The console.log comes every time i close the scanner.
If I close the scanner before the scanner is ready to scan, it throws the error. It seems wierd that closing the scanner fast after opening it should cause errors.
I use the scanner like this
`import { CapacitorBarcodeScanner, CapacitorBarcodeScannerTypeHintALLOption, CapacitorBarcodeScannerScanOrientation, CapacitorBarcodeScannerCameraDirection, type CapacitorBarcodeScannerOptions, type CapacitorBarcodeScannerScanResult, CapacitorBarcodeScannerAndroidScanningLibrary } from '@capacitor/barcode-scanner';
export async function scanBarcode(): Promise<CapacitorBarcodeScannerScanResult | undefined> {
try {
const options: CapacitorBarcodeScannerOptions = {
hint: CapacitorBarcodeScannerTypeHintALLOption.ALL,
cameraDirection: CapacitorBarcodeScannerCameraDirection.BACK,
scanOrientation: CapacitorBarcodeScannerScanOrientation.PORTRAIT,
android: {
scanningLibrary: CapacitorBarcodeScannerAndroidScanningLibrary.ZXING,
},
web: {
showCameraSelection: true,
scannerFPS: 30,
},
};
} catch (error) {
console.error('Error scanning barcode:', error);
}
}
`
and set up the android manifest and podfile like shown on the install guide
The text was updated successfully, but these errors were encountered: