I’ve found a bit of a bug in the example barcode scanner that uses pic2shop.
The first scan is fine using…
location="pic2shop://scan?callback=" + location.href
…but subsequent calls to pic2shop then use the ‘new’ location.href that already has a returned ean number in it, so the return parameters on subsequent restarts include the barcode ‘ean’ from the original call, presumably in addition to the 2nd barcode, I didn’t check that.
The work around for me was to save the location.href in localstorage on first startup and keep calling pic2shop with that value and not the current location.href.
location="pic2shop://scan?callback=" & localStorage.OriginalLocationhref
Just posted here to help anyone else who may be interested in this example.