Hello,
I tried your demo and it works fine. When I add it to my own application, I get the message postAppMessage is not defined.
My action steps:
-I added the UniMobileX1 component to the form.
-I added the postAppMessage function to the script property of the form.
-One button UniMobileX1.ReadBarcode(true); i wrote your code