Open mchlkng88 opened 3 years ago
Hi, there is any solution for this bug?
Apple has done these treatments, please refer to the link below.
My solution is to remove the preceding 0 if the barcode is 13 digits and the first digit is 0.
https://stackoverflow.com/questions/22767584/ios7-barcode-scanner-api-adds-a-zero-to-upca-barcode-format https://developer.apple.com/library/archive/technotes/tn2325/_index.html#//apple_ref/doc/uid/DTS40013824-CH1-IS_UPC_A_SUPPORTED_
Apple has done these treatments, please refer to the link below.
My solution is to remove the preceding 0 if the barcode is 13 digits and the first digit is 0.
https://stackoverflow.com/questions/22767584/ios7-barcode-scanner-api-adds-a-zero-to-upca-barcode-format https://developer.apple.com/library/archive/technotes/tn2325/_index.html#//apple_ref/doc/uid/DTS40013824-CH1-IS_UPC_A_SUPPORTED_
Confirmo que esta solución me ha funcionado.
I confirm that this solution has worked for me.
BUG REPORTS WITHOUT PROVIDING THESE INFORMATIONS WILL BE CLOSED DIRECTLY. DON'T REMOVE THE SECTIONS!
Describe the bug When you scan a 12-digit UPC_A barcode, Codescan recoginaze it as EAN13 and pad a '0' at the begin of rawContent.
For example: UPC_A 096619663712, it will be returned as 0096619663712 in the format of EAN13.
To Reproduce Scan
Expected behavior return 096619663712 instead of 0096619663712
Screenshots If applicable, add screenshots to help explain your problem.
Logs If applicable, add the verbose output of
flutter run
.Environment (please complete the following information):
barcode_scan
flutter --version
:Additional context Add any other context about the problem here.