Use a built-in scanner (in TC56 model) on the home screen or even in lock mode


Audience

Is it possible to use a built-in scanner (in TC56 model) on the home screen or even in lock mode and pass data to my app?
Basically, all I want to do is this sequence:
on the home screen, scanner buttons are pressed->barcode getting scanned->specific app receives scan result
Are there any API methods I can use for this?

Submitted by antonkorwin@gm… on January 21, 2022 Permalink

Thanks for the reply. I've tried this option with foreground service, but even when the service is running and app is in the background, scanner buttons seems disabled and don't actually turn on the scanner

Submitted by James Swinton … on January 21, 2022 Permalink

There is a default profile in DataWedge called "Launcher" which is what is active when the device is on the launcher screen - you may have to modify this profile to fit your needs, specifically enabling Barcode Input & Intent Output and configuring Intent Output to send the data to your broadcast receiver.