Plugin(s)
Version
5.4.0
Platform(s)
Current behavior
With a Samsung A23 the scan doesn't work (Nothing append)
Expected behavior
qrcode scan work with the Samsung A23
Reproduction
https://github.com/capawesome-team/.capacitor-app
Steps to reproduce
- Try to scan a QRcode with a Samsung A23
Other information
My code :
async scanCode() {
await BarcodeScanner.requestPermissions();
const data = await BarcodeScanner.isGoogleBarcodeScannerModuleAvailable();
if (data.available) {
const code = await this.startScanner();
this.importerService.generateDossierFromQRCode(code);
} else {
try {
await BarcodeScanner.installGoogleBarcodeScannerModule();
const code = await this.startScanner();
this.importerService.generateDossierFromQRCode(code);
} catch (e) {
await this.ui.alertSimple(
"ERROR"
);
}
}
}
async startScanner() {
const { barcodes } = await BarcodeScanner.scan({
formats: [BarcodeFormat.QrCode, BarcodeFormat.Ean13]
});
return barcodes;
}
async requestPermissions(): Promise<boolean> {
const { camera } = await BarcodeScanner.requestPermissions();
return camera === 'granted' || camera === 'limited';
}
Capacitor doctor
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 5.7.4
@capacitor/core: 5.7.4
@capacitor/android: 5.7.4
@capacitor/ios: 5.7.4
Installed Dependencies:
@capacitor/ios: not installed
@capacitor/cli: 5.6.0
@capacitor/core: 5.6.0
@capacitor/android: 5.6.0
[success] Android looking great! 👌
Before submitting
Plugin(s)
Version
5.4.0
Platform(s)
Current behavior
With a Samsung A23 the scan doesn't work (Nothing append)
Expected behavior
qrcode scan work with the Samsung A23
Reproduction
https://github.com/capawesome-team/.capacitor-app
Steps to reproduce
Other information
My code :
Capacitor doctor
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 5.7.4
@capacitor/core: 5.7.4
@capacitor/android: 5.7.4
@capacitor/ios: 5.7.4
Installed Dependencies:
@capacitor/ios: not installed
@capacitor/cli: 5.6.0
@capacitor/core: 5.6.0
@capacitor/android: 5.6.0
[success] Android looking great! 👌
Before submitting