Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: startScan can not scan long text qrcode #136

Closed
5 of 11 tasks
TheSoils opened this issue Mar 14, 2024 · 1 comment
Closed
5 of 11 tasks

bug: startScan can not scan long text qrcode #136

TheSoils opened this issue Mar 14, 2024 · 1 comment
Labels
bug/fix Something isn't working package: barcode-scanning platform: android Android platform

Comments

@TheSoils
Copy link

TheSoils commented Mar 14, 2024

Plugin(s)

  • Barcode Scanning
  • Face Detection
  • Face Mesh Detection
  • Selfie Segmentation
  • Translation

Version

5.4.0

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

when i startScan a qrcode that encode a 341 character string on android phone, the android logcat show Notifying listeners for event barcodeScanned, but listeners function doesnt get the scan result.
It can scan success with readBarcodesFromImage
This is the qrcode and logcat.
my device is xiaomi 12 ,android 14,the device dont have google play , so use startScan
image
image

Expected behavior

barcodeScanned listener get the scan result.

Reproduction

https://github.com/robingenz/capacitor-mlkit-plugin-demo

Steps to reproduce

1.pull the demo project
2.build and run on android device
3. startScan a long content qrcode

Other information

two test device is
xiaomi 12 android 14 api34
huawei got-w09 android 12 api31

Capacitor doctor

[warn] The bundledWebRuntime configuration option has been deprecated. Can be safely deleted.
💊 Capacitor Doctor 💊

Latest Dependencies:

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

Installed Dependencies:

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

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

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.
@TheSoils TheSoils added bug/fix Something isn't working needs: triage labels Mar 14, 2024
@TheSoils TheSoils changed the title bug: can not scan long text qrcode bug: startScan can not scan long text qrcode Mar 14, 2024
@robingenz
Copy link
Member

I was able to reproduce your issue. But this is only an issue in the demo app, not in the barcode scanning plugin. The qrcode is recognized, but only if you are close enough with the camera. Then, however, the detection area of the demo app is too small. The demo app only serves as a demo, not as a finished app. If you need to scan barcodes with a lot of information, you can simply make the detection area larger in your app.

@robingenz robingenz closed this as not planned Won't fix, can't repro, duplicate, stale Mar 14, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug/fix Something isn't working package: barcode-scanning platform: android Android platform
Projects
None yet
Development

No branches or pull requests

2 participants