Skip to content

"code":"UNIMPLEMENTED"- throwing error in Android 15 - Ionic 7 +Capacitor 7 #84

@Anilcse533

Description

@Anilcse533

I have installed this plugin - https://capacitorjs.com/docs/apis/barcode-scanner.
In Package.json - @capacitor/barcode-scanner": "^2.0.4"

As I did not see any official documentation for this - no git or npm repo.

I have found your documentation.

Here is my code:

const result = await CapacitorBarcodeScanner.scanBarcode({
hint: CapacitorBarcodeScannerTypeHint.ALL,
scanInstructions: "Please scan a barcode",
scanButton: true,
scanText: "Scan",
cameraDirection: CapacitorBarcodeScannerCameraDirection.BACK,
scanOrientation: CapacitorBarcodeScannerScanOrientation.ADAPTIVE,
android: {
scanningLibrary: CapacitorBarcodeScannerAndroidScanningLibrary.ZXING
}
});
if(result.ScanResult){
await this.closeModal(result.ScanResult);
}
else {
await this.closeModal();
}

But its throwing an error : {"code":"UNIMPLEMENTED"}

Can you please help me how to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions