journeyapps / zxing-android-embedded

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

Samsung Galaxy S21+ - Incorrect/No Scan for Code39 Barcode #651

Open vigneshv01-ship-it opened 2 years ago

vigneshv01-ship-it commented 2 years ago

Description of the problem:

When trying to scan in Samsung Galaxy S21+ device, either the scan data is incorrect or it does not scan at all.

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

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

Does the same happen on other devices or an emulator? Other Android 10/11 devices are pretty stable so far.

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

ghost commented 2 years ago

We have the same problem on Samsung Tab Active 3 (Android 11) and Google Pixel 3 (Android 12) with Code39 and QR codes. But on our side, we do not get the wrong data, because the complete scan does not work.

We use version 3.6.0 and 4.3.0.

MakawaMT commented 2 years ago

We have the same problem on Samsung Tab Active 3 (Android 11) and Google Pixel 3 (Android 12) with Code39 and QR codes. But on our side, we do not get the wrong data, because the complete scan does not work.

We use version 3.6.0 and 4.3.0.

What are you using to read the scan result? Is it the IntentIntegrator.parseActivityResult() method or data.getExtras() on ActivityResult?

ghost commented 2 years ago

On our side, the problem was solved by sintering the view from the scan. Thus, it is not so time-consuming to scan the codes on large devices.

Even if the (e.g. QR code) was smaller on the screen and did not take up the whole screen, the scan worked perfectly.

A good solution is to make the scan view the same as in the Barcode Scanner app.

bsvanli commented 1 year ago

Samsung Galaxy S21+ No Scan for QR Barcode. How we can solve this problem?

Which library version are you using?. 4.2.0

Which phone/tablet are you using, and which Android version does it run? Samsung Galaxy S21+ - Android 11

bsvanli commented 1 year ago

On our side, the problem was solved by sintering the view from the scan. Thus, it is not so time-consuming to scan the codes on large devices.

Even if the (e.g. QR code) was smaller on the screen and did not take up the whole screen, the scan worked perfectly.

A good solution is to make the scan view the same as in the Barcode Scanner app.

Hello, Is the problem solved by making it full screen?

ghost commented 1 year ago

On our side, the problem was solved by sintering the view from the scan. Thus, it is not so time-consuming to scan the codes on large devices. Even if the (e.g. QR code) was smaller on the screen and did not take up the whole screen, the scan worked perfectly. A good solution is to make the scan view the same as in the Barcode Scanner app.

Hello, Is the problem solved by making it full screen?

Unfortunately, we could not find a solution, which could fix this error right now 😞

The best workaround is to reduce the scan area in your activity.