UPC-A and EAN-13

C Charles Berlin 2 years 11 months ago
111 1 0

Currently I have both UPC-A and EAN-13 enabled, but when I scan a UPC-A barcode with a leading 0 (technically a EAN-13), it reads it as a UPC-A and strips the leading 0. 

If I add this code

config?.decoderParams?.upca?.preamble = ScannerConfig.Preamble.COUNTRY_AND_SYS_CHAR

It fixes the issue on that barcode, but then adds a leading 0 to all UPC-A barcodes.

Is there a way to handle both at the same time? Or will I have to have something in the app that allows you to toggle this on/off?

Here is an example barcode

Please register or login to post a reply

1 Replies

F Florent CHARTIER

Hello, I've exactly the same issue. Did you found a solution with the scanner configuration or did get it on your application side ?
Thans for your answer.
Florent

CONTACT
Can’t find what you’re looking for?