Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Rotating from portrait to landscape breaks scanner on ipad #168

Open
5 of 11 tasks
mbrunneritlabs opened this issue Jul 17, 2024 · 3 comments
Open
5 of 11 tasks

Comments

@mbrunneritlabs
Copy link

mbrunneritlabs commented Jul 17, 2024

Plugin(s)

  • Barcode Scanning
  • Face Detection
  • Face Mesh Detection
  • Selfie Segmentation
  • Translation

Version

6.1.0

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

On most devices when opening the barcode scanner in portrait mode and then turning to landscape mode the picture in the scanner window turns correctly.

On Ipad10 when turning the barcode scanner window from portrait to landscape the picture doesnt turn and the window is cut on the right side.

So our app itself and the overlay turns correctly to landscape mode but the scanner stays in portrait mode.

// Portrait Mode

Image

// Broken Landscape Mode after rotating

Image

Interesting:

Starting the scanner in landscape mode works correctly. The issue only occurs when turning the scanner from portrait to landscape while running and only on our ipad test device.

Expected behavior

When turning to landscape mode the scanner turns correctly on ipad.

Reproduction

The bug lies withing the scanner itself

Steps to reproduce

Run BarcodeScanner.startScan on Ipad 10
Turn from Portrait Mode to Landscape -> The picture from camera is rotated incorrectly and black bar occurs.

Other information

No response

Capacitor doctor

I currently cannot run this command but can provide the next days.

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.
@mbrunneritlabs mbrunneritlabs added bug/fix Something isn't working needs: triage labels Jul 17, 2024
@robingenz
Copy link
Member

Unfortunately, I don't have access to an iPad 10. Feel free to create a PR.

@orl99
Copy link

orl99 commented Aug 7, 2024

are we progressing in this?

@mbrunneritlabs
Copy link
Author

We found a semi good workaround.
We listen to the screen rotate event and restart the scanner manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants