Receiving barcode in Xamarin Android app via DataWedge

G Guy Colsoul 3 years 8 months ago
14 1 0

Hi,
I'm implementing a barcode integration based on a Zebra TC26 in the Android part of a Xamarin Forms application.
I' trying to get the barcode using an IntentFilter and a BroadcastReceiver.
With this code :
IntentFilter filterScan = new IntentFilter("com.symbol.datawedge.api.RESULT_ACTION");
filterScan.AddCategory("android.intent.category.DEFAULT");
MainActivity.ActivityContext.RegisterReceiver(new DataReceiver(), filterScan);
the OnReceive method of DataReceiver (which is a BroadcastReceiver) is never triggered.
Thanks.
Regards,
Guy

CONTACT
Can’t find what you’re looking for?