Is there any way to capture text when input mode is “text injection” ?
As far as I know, the TextInjection mode does not generates events that can be relieved in JS.
Having a stronger control on the codes coming from the scan engine inside a Web apps, than the control allowed by the Keyboard Wedge is a well known issue.
If your Web app is based on Native React framework, we provide a Datalogic React Native SDK module too.
Some React Native sample projects are available too.
If your app is a classical Web application open in a standard browser, you can’t directly access scanner events. This would require the development of a special Browser, with a modified JS engine, able to recognize special commands and events addressed to or coming from the ScanEngine.
Waiting for such a solution, Datalogic is providing a bridge solution through some HTTP EndPoints, collected under the name of Android HTTP API and made available with the DXU service activation.
Datalogic Mobile Products Specialist - SW Engineer