Redth / ZXing.Net.Maui

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

Event BarcodesDetected not called #132

Open eliagil opened 1 year ago

eliagil commented 1 year ago

Hi, I'm struggling to call the event. I've followed all the steps as detailed in documentation (add call in MauiProgram, call an event from the xaml file and defining the event function. But when I try to read a barcode with my Android device no event is executed (I'm using FreshMvvM on my projecte, I dont' know if it is causing any compatibility probles with zXing). Am I missing something?

(I attach pictures of my code)

MauiProgram.cs

image

ValidationPage.xaml

image

ValidationPage.xaml.cs (event not called)

image
adrianotrentim commented 1 year ago

test setting WidthRequest and HeightRequest values to barcodeView.... When they are not set, the component have some problems

nejis commented 1 year ago

Hallo, i have the same issue, on IOS i don't get any results while scanning. and i tryed setting WidthRequest and HeightRequest.