capawesome-team / capacitor-mlkit

⚡️ ML Kit plugins for Capacitor. Supports Android and iOS.
https://capawesome.io/plugins/mlkit/
Apache License 2.0
141 stars 39 forks source link

bug: Can't read an Aztec code #164

Closed scr2em closed 2 months ago

scr2em commented 2 months ago

Plugin(s)

Version

6.1.0

Platform(s)

Current behavior

It can't read this code while the old plugic could image

Expected behavior

I migrated from @capacitor-community/barcode-scanner and expected it work the same

Reproduction

use your demo app

Steps to reproduce

  1. use your demo app
  2. scan the attached barcode

Other information

No response

Capacitor doctor

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 6.1.0 @capacitor/core: 6.1.0 @capacitor/android: 6.1.0 @capacitor/ios: 6.1.0

Installed Dependencies:

@capacitor/cli: 6.0.0 @capacitor/core: 6.0.0 @capacitor/android: 6.0.0 @capacitor/ios: 6.0.0

[success] iOS looking great! 👌 [success] Android looking great! 👌

Before submitting

robingenz commented 2 months ago

I cannot reproduce your problem (see video). I am therefore closing this issue.

https://github.com/capawesome-team/capacitor-mlkit/assets/13857929/4635a7ac-edd9-4367-bf49-1c676e5385b5

scr2em commented 2 months ago

@robingenz Yep, it was my fault. I thought there will always be.rawValue but I was wrong. Now I'm always getting the barcode from converting the bytes array.

image
const barcode = barcodeScannedEvent.barcode.bytes.map((byte) => String.fromCharCode(byte)).join("");

in case someone had the same issue