csZBar icon indicating copy to clipboard operation
csZBar copied to clipboard

Unstable in Android 5.1 and above

Open NiraliShukla opened this issue 9 years ago • 8 comments

The library is working fine with iOS but we are facing issues in Android. The behavior is inconsistent while scanning QR Code that has URL. At times it returns correct URL and sometimes it returns some numeric value for same QR code. We have also observed that it does not scan in few devices like Redmi Note 3 with OS Android 5.1.

NiraliShukla avatar Jun 07 '16 09:06 NiraliShukla

Are you sure it's only Android 5.1?

I get false positives sometimes, when no QR code is visible at all. I'll have to try if I can keep scanning on success, than I'll just do a little sanity check and it will be all fine for my purpose.

cougarten avatar Jun 29 '16 08:06 cougarten

Are you still seeing this @NiraliShukla ? I'm not seeing this issue.

dcousens avatar Jul 29 '16 01:07 dcousens

I have not tried since long. Replaced Zbar with other library. Have you implemented any fixes? If so, I can try it again.

NiraliShukla avatar Jul 30 '16 04:07 NiraliShukla

I have experienced this issue on a Nexus 6 running Android 6.0.1. While testing inside, the issue never occured. However, when conducting a field test outside, the issue occurs quite frequently. The QR-code has text content and printed on an A4 sheet of paper.

Have also tested with an iPhone 5S running iOS 10. I have not as of yet experienced this issue on that one.

jmrhib avatar Sep 23 '16 07:09 jmrhib

I have tested a little bit more. In the PreviewCallback method in ZBarScannerActivity.java, if I log out sym.getData(), indeed sometimes I get just a string of numbers instead of the value it is supposed to be. They seem to always begin with "0", two of them are 0104815905382009 and 0134006678964252.

Is this plugin based on the ZBar Android SDK? Those files are from 2012. I cannot find the source code for them anywhere.

Maybe it would be possible to compile newer versions of libzbarjni.so and libiconv.so, and that could possibly solve this problem.

jmrhib avatar Sep 23 '16 11:09 jmrhib

@NiraliShukla can u name the zbar alternative library which u are using Thanks

Anmol-Tuple avatar Jan 30 '18 06:01 Anmol-Tuple

also unstable in version 6.0. seems to be a race conditon with cam access. somewtime works, sometime not. i not always see the cam permission dialog after delete cache & data & reinstallation

jayjupdhig avatar Apr 24 '20 15:04 jayjupdhig

also unstable in version 6.0. seems to be a race conditon with cam access. somewtime works, sometime not. i not always see the cam permission dialog after delete cache & data & reinstallation

Maybe there is a relation between that??

jayjupdhig avatar Apr 28 '20 07:04 jayjupdhig