Can I receive events from a BarcodeScanner in a background task?

694 Views Asked by At

I am totally new to UWP and building an application that needs to take input from a barcode scanner using the UWP Point-of-Service API. I also have a legacy application that needs to take input from the scanner as key presses. My scanner (a Zebra 2208) doesn't seem to support switching between HID POS and HID keyboard mode automatically when it is claimed/unclaimed.

Is it possible to have my UWP app receive data from the scanner while running in the background and use the InputInjector API to send keys to the legacy application? If so, how?

1

There are 1 best solutions below

0
On

@David Brown,

Background support for scanning barcodes was introduced in Windows 10 version 1903 (build 18362). This capability was also added to 1809 (build 17763) with the servicing update released in April 2019 (KB4490481). Please update your Windows installation to one of the above and give it a try.

Terry Warwick, Microsoft