C# ClaimedBarcodeScanner events not firing in Windows 10 Build 19043.1645

Gaurang 1 Reputation point
2022-04-21T08:52:00.627+00:00

Hello,

our company develops Kiosk Applications using Windows 10 IoT Enterprise LTSC.

We are developing a new stack using WinUI3 and Windows App SDK v1.0 for our application. Unfortunately, on our development machines which run Windows 10 Pro Build Version 19043.1645, the DataReceived and other Events are not fired at all! The same application when run on the Windows 10 IoT Enterprise LTSC machines (Build 1809) works flawlessly with the same Barcode Scanner (same configuration as well, in HID POS mode). There seems to be a bug here somewhere and we would like it to be fixed asap. as it affects us drastically.

More Information:

1.) The UWP Barcode Scanner example project (C#) has the same issues as well, so it is not dependent on our code.

2.) The UWP Barcode Scanner example project (C++) works without any issues, so the problem seems to be somewhere in the C# API.

Best Regards,
Gaurang Ingale

HelloGuest Solutions GmbH

Developer technologies | Universal Windows Platform (UWP)
Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,931 Reputation points
    2022-04-26T10:30:42.993+00:00

    Hi there,

    As it is evident that the code is not firing only on Windows 10 Pro Build Version 19043.1645 it as advised to raise a ticket or submit the feedback to the Windows development team who would review and release subsequent patches to sort this out.

    Also check the Event that is raised when the ClaimedBarcodeScanner is closed. When an application is suspended, all ClaimedBarcodeScanner objects are closed. This event can be useful to determine when barcode scanner connections need to be re-established.

    Below threads discusses the same issue and you can look into it for some insights.
    UWP Barcodescanner DataReceived Event not firing https://social.msdn.microsoft.com/Forums/en-US/80f7536e-a2ac-4f07-9b56-8cf7a4932e6e/uwp-barcodescanner-datareceived-event-not-firing?forum=wpdevelop


    --If the reply is helpful, please Upvote and Accept it as an answer–

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.