phonegap / phonegap-plugin-barcodescanner

cross-platform BarcodeScanner for Cordova / PhoneGap
MIT License
1.27k stars 1.41k forks source link

iOS returns more digits than Andriod #487

Closed scottstout closed 7 years ago

scottstout commented 7 years ago

Expected Behaviour

If it is a UPC_A I think you are only supposed to get back 12 digits. On Android this is the case:

Result: 041220753772 Format: UPC_A Cancelled: false

Actual Behaviour

On iOS I get back 13 digits when scanning the same barcode:

We got a barcode Result: 0041220753772 Format: UPC_A Cancelled: 0

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Andriod (testing on old device 4.2.2, though others have tested with newer devices and it worked fine). iOS (10.3.2)

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

Samsung Galaxy S III mini (but other have tested on newer devices)

Cordova CLI version and cordova platform version

cordova --version 7.0.1
cordova platforms 

Plugin version

Installed platforms: android 6.2.3 ios 4.1.1 Available platforms: blackberry10 ~3.8.0 (deprecated) browser ~4.1.0 webos ~3.7.0 windows ~5.0.0

cordova plugin version | grep phonegap-plugin-barcodescanner

phonegap-plugin-barcodescanner 6.0.6 "BarcodeScanner"

Sample Code that illustrates the problem

Logs taken while reproducing problem

macdonst commented 7 years ago

@scottstout yeah, that is weird. The UPC_A format is 12 digits. We'll look into why this is happening on iOS.

macdonst commented 7 years ago

Duplicate of #364

lock[bot] commented 6 years ago

This thread has been automatically locked.