Implementing Continuous Barcode Scanning with Zebra MC220J and Business Central App

F Federico Pappalardo 3 months 1 week ago
106 2 0

Good morning,

I am working on implementing Scenario 3 as described in the official Microsoft documentation on adding barcode scanning to the mobile app. My objective is to enable continuous scanning using a Zebra MC220J device with the Business Central App installed. I want to intercept scanned barcodes for processing via custom code, without requiring any UI interaction from the warehouse operator.

According to Microsoft's documentation:

With some barcode scanner devices, such as Zebra, you can't modify the intent configuration. In this case, you can pass the intent data strings via AL.

To achieve this, I attempted to implement the code by calling the `RequestBarcodeScannerAsync` function:

                    if IsSupported then
                        CurrPage.BarcodeControl.RequestBarcodeScannerAsync('com.businesscentral.barcode.receive_barcode',
                                                                           'com.businesscentral.barcode.receive_category',
                                                                           'com.businesscentral.receive_barcode.barcode_string',
                                                                           'com.businesscentral.receive_barcode.barcode_format'); // Step 3

Additionally, I configured a new profile on the Zebra DataWedge app, setting the "Intent delivery mode" to "broadcast intent". However, the result has been that the `BarcodeReceived(Barcode: Text; Format: Text)` trigger is never raised, and the scanned barcode is not passed to the app.

I have received support on other forum and basically they are telling me the solution would be to pass just the Data Action = 'com.businesscentral.barcode.receive_barcode' and the Data Extra = 'com.businesscentral.receive_barcode.barcode_string'.

Unfortunately, it seems there is no way to pass the Data Extra anywhere inside the DataWedge app, so the only way should be to write a specific Android App for the Zebra Scanner. Is there a way in the Data Wedge setup to pass the Data Extra?

I am probably looking for something like this:

Intent i = new Intent();
i.setAction("com.businesscentral.barcode.receive_barcode");
i.putExtra("com.businesscentral.receive_barcode.barcode_string", <mainbundle>);

But enabled directly from the DataWedge app.

Thank you for any insight.

Please Register or Login to post a reply

2 Replies

S Sergio Montanari

Ciao Federico, ho lo stesso identico problema... tu hai risolto, per caso? :)

H Humberto Mcfarland

This already functions similarly to the application's default configuration. If it doesn't work, look at other barcode scanner apps. 

For more information, here is the link to visit: https://developer.zebra.com/latest-discussions slope game

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