Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

Random leading zero added to scanned barcodes on iOS #30

Closed
NatoBoram opened this issue Jul 24, 2018 · 1 comment
Closed

Random leading zero added to scanned barcodes on iOS #30

NatoBoram opened this issue Jul 24, 2018 · 1 comment

Comments

@NatoBoram
Copy link

NatoBoram commented Jul 24, 2018

This might be a problem with MTBBarcodeScanner, but I'm reporting it here just to be sure.

I've used this Flutter plugin and some barcodes on iOS have a random zero appearing in front of them. The problem isn't there on Android.

You can try to reproduce the problem by using this picture of an offending barcode with an iOS device.

img-1155
img-1154

@NatoBoram
Copy link
Author

I went in MTBBarcodeScanner and I found this interesting link.

UPC-A is a formal subset of EAN-13. A decoded UPC-A barcode is output as AVMetadataObjectTypeEAN13Code with a leading zero in the stringValue.

This indicates that the problem might be within iOS itself rather than MTBBarcodeScanner.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants