Redth / ZXing.Net.Maui

Barcode Scanning for MAUI?
MIT License
459 stars 151 forks source link

Zxing MAUI not working on Samsung Tab #49

Open jrahma opened 2 years ago

jrahma commented 2 years ago

Hi,

I am trying to use Zxing MAUI on Samsung Tab A7 SM-T500 but the scanning is not happening and BarcodesDetected is not fired.

Kindly help..

Thanks, Jassim

g0dpain commented 1 year ago

@jrahma can you provide some code or logs?

SunshineSpring666 commented 1 year ago

Hi everyone, Not working on Huawei Mate X2 either (API level 31). When trying to scan a QR code, nothing happens, nor does the event get fired. The code is the same as the ZXing ReadMe documentation. Thanks.

sajjucode commented 1 year ago

I'm also facing same issue on API Level 31.

gencgiyen commented 1 year ago

I had the same problem. I solved this issue by adding a small code.

imageAnalyzer = new ImageAnalysis.Builder() .SetDefaultResolution(new Android.Util.Size(640, 480)) .SetBackpressureStrategy(ImageAnalysis.StrategyKeepOnlyLatest) .SetOutputImageRotationEnabled(true) .Build();

in ZXing.Net.MAUI\Platforms\Android\CameraManager.android.cs in method Connect()

I was able to read in API Level 30, 31, 32 and 33 without any problem.