csZBar
csZBar copied to clipboard
Unstable in Android 5.1 and above
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.
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.
Are you still seeing this @NiraliShukla ? I'm not seeing this issue.
I have not tried since long. Replaced Zbar with other library. Have you implemented any fixes? If so, I can try it again.
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.
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.
@NiraliShukla can u name the zbar alternative library which u are using Thanks
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
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??