BarcodeScanner
BarcodeScanner copied to clipboard
Orientation issue after using the BarcodeScanner plugin on Android with PhoneGap build
Hi,
I'm having an issue with the orientationchange event and window.orientation property after scanning a barcode in portrait mode.
Steps to reproduce:
- have the device in portrait (window.orientation = 0)
- initiate a barcode scanning (it will force the device to landscape, triggers an orientationchange and set window.orientation = -90, before starting the scanner)
- keep the device in portrait and return back to the app
- window.orientation remains at -90, no orientationchange is triggered even though the device is still physically in portrait.
- turn the device to landscape (-90), no orientationchange will be triggered as the device already thinks it's in that orientation
- after this the window.orientation and orientationchange works as normal again
Is there any workaround for this? I have the same issue in both 2.7, 3.0 and 3.1.
Hi, I have same issue in phonegap 3.2.0.
I state in portrait image upside down. In landscape - everything is fine. Ionic 1.2.4