Shopify / ui-extensions

MIT License
269 stars 35 forks source link

POS Scanner component (camera) - sometimes adds a leading zero to certain barcodes #2354

Open derrickrc opened 2 months ago

derrickrc commented 2 months ago

Please list the package(s) involved in the issue, and include the version you are using

retail-ui-extensions-react 1.7.0

Describe the bug

A merchant shared with us that when using the built-in iPad camera and Scanner component, there are certain barcodes where the callback is adding a leading zero. Below is an example of a barcode where if you use api.scanner.scannerDataSubscribable.subscribe and the iPad camera, there is an extra leading zero in the data payload for some reason.

This is only happening with the camera scanner, and I suspect it has to do with the actual physical shape of this barcode with where the numbers are.

Image

timvandam commented 1 month ago

I've run into this too, would be nice to have this fixed