journeyapps / zxing-android-embedded

Barcode scanner library for Android, based on the ZXing decoder
https://journeyapps.com/
Apache License 2.0
5.74k stars 1.27k forks source link

Unable to scan Google QR code content #736

Open 123yangu opened 1 year ago

123yangu commented 1 year ago

Description of the problem:

Unable to scan Google QR code content

Which library version are you using? E.g. 3.2.0.

last version

Which phone/tablet are you using, and which Android version does it run? (e.g. Samsung Galaxy S5, Android 5.0)

HONOR 50 Android12

Does the same happen on other devices or an emulator?

Can you reproduce the issue in the sample project included with the library? If not, can you provide your own sample project or sample code that produces this error?

In the case of an error do you have a stack trace or adb logs?

image

m-asadullah commented 1 year ago

It's better to use Android ML-Kit for scanning codes.😊

rkistner commented 1 year ago

This works when using INVERTED_SCAN or MIXED_SCAN mode:

https://github.com/journeyapps/zxing-android-embedded/blob/d09b7c76c3124fbfbd096a65d60b1997f37ff90f/sample/src/main/java/example/zxing/MainActivity.java#L52-L56