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.
Has anyone else experimented with this setup? Microsoft's documentation on this subject lacks detail, so I'm wondering if anyone has successfully implemented this or could offer some guidance.
Thank you in advance for any assistance.