Receiving barcode in Xamarin Android app via DataWedge

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

Darryn Campbell
Hi, please see my getting

Hi, please see my getting started guide for DataWedge that includes a Xamarin sample: https://developer.zebra.com/blog/getting-started-datawedge-zebra-devices 

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Guy Colsoul
Hi. Thanks four your answer.

Hi. Thanks four your answer. The intent settings in the DataWedge configurator app were missing. it works now.
Kind regards,
Guy

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments