BarcodeScanner icon indicating copy to clipboard operation
BarcodeScanner copied to clipboard

Orientation issue after using the BarcodeScanner plugin on Android with PhoneGap build

Open klemetsson opened this issue 11 years ago • 2 comments

Hi,

I'm having an issue with the orientationchange event and window.orientation property after scanning a barcode in portrait mode.

Steps to reproduce:

  1. have the device in portrait (window.orientation = 0)
  2. initiate a barcode scanning (it will force the device to landscape, triggers an orientationchange and set window.orientation = -90, before starting the scanner)
  3. keep the device in portrait and return back to the app
  4. window.orientation remains at -90, no orientationchange is triggered even though the device is still physically in portrait.
  5. turn the device to landscape (-90), no orientationchange will be triggered as the device already thinks it's in that orientation
  6. 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.

klemetsson avatar Nov 04 '13 08:11 klemetsson

Hi, I have same issue in phonegap 3.2.0.

fabiogomiero avatar Mar 24 '14 08:03 fabiogomiero

I state in portrait image upside down. In landscape - everything is fine. Ionic 1.2.4

ne3Vubeki avatar Feb 08 '16 15:02 ne3Vubeki