I am using the "Experimental" ScanBarcode(), I have a SharePoint new form with Title. OnVisiblie for that screen I have it set to :UpdateContext({barcode: ScanBarcode()}).
My DataCard is set default barcode, when the screen loads it scans the barcode and inputs the text in the textbox. The onsubmit Icon that submits to SharePoint and on success to send to a Success screen.
And another Icon that sends it back to the BarcodeScan Screen, which should then use the UpdateContext({barcode: ScanBarcode()}) on visible command. To scan the next item I also have a refresh button that uses the UpdateContext({barcode: ScanBarcode()}). Just so I can invoke it again.
I would expect for it to scan then new item and enable me to submit to SharePoint. Instead it shows a “getting data” message and no textbox, as if the last read from the scanner wasn't recognized/updated. This happened also before I started using the ScanBarcode() but the scanner would say 'Your camera isn't setup, or you're already using it' I have also tried to “clear” the input text from the barcode by using the OnHidden barcode=”” I am using an iphone 6 to test.