Skip to content

Camera view rotation rotated 90 degrees randomly #166

@danbrannanavontus

Description

@danbrannanavontus

Hi

We have recently ported from zxing.net.maui to barcodescanning.native.maui for various reasons, but one of which was due to rotation issues on iPad devices. However, after porting we are still experiencing rotation weirdness with barcodescanning.native.maui on iPad although it appears to be sporadic. On the occasions I have reproduced it, these were the steps:

  • Force landscape for iPad in info.plist:

<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>

  • Start the application with the device held in portrait (so everything is sideways) and load the page which wraps the barcodescanning.native.maui CameraView control.
  • The QR code preview is now rotated by 90 degrees and can't be corrected by rotating the device.
  • Reloading the app with the device in the correct orientation seems to fix it.

I found #151 which suggests it was recently broken however, it looks like a fix has gone in and we are using the latest (2.2.1).

Given that the same thing was happening in Zxing could this be something underlying in iOS?

Thanks

Dan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions