phonegap / phonegap-plugin-barcodescanner

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

android (portrait) can't scan EAN #452

Open askerpro opened 7 years ago

askerpro commented 7 years ago

Expected Behaviour

Scanning in landscape and in portrait mods

Actual Behaviour

Working only in landscape mode: In portrait mode I have stretched preview image screenshot_20170418-085415

Reproduce Scenario (including but not limited to)

orientation: "portrait"

Steps to Reproduce

just set orientation to "portrait"

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

Android 7.1

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

Mi 4c

Cordova CLI version and cordova platform version

cordova --version 6.5.0
cordova platforms 

android 6.1.2 (on 5.1.1 the same issue) browser 4.1.0

Plugin version

3.0.0 cordova plugin version | grep phonegap-plugin-barcodescanner

Sample Code that illustrates the problem

Logs taken while reproducing problem

[console.log] Received Event: deviceready [console.log] Plugin available [console.log] We got a barcode Result: Format:

DannyRidgway commented 6 years ago

I too can confirm we are having this issue reading the barcode format EAN128 in portrait mode. We are now forcing the scanner into the landscape mode.