Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

barcode scanning issue - iPhone 13 Pro and iPhone 13 Pro max #1880

Open
DanielDent opened this issue Apr 8, 2022 · 0 comments
Open

barcode scanning issue - iPhone 13 Pro and iPhone 13 Pro max #1880

DanielDent opened this issue Apr 8, 2022 · 0 comments

Comments

@DanielDent
Copy link

I'm using <MLKitBarcodeScanner preferFrontCamera="false"> and it's not working on iPhone 13 Pro and iPhone 13 Pro Max devices. I've had users report that the image is blurry.

I'm not sure what's going on, but I'm wondering if somehow the wrong camera might be getting used on these devices? They have both macro and telephoto cameras.

this.captureDevice = AVCaptureDeviceDiscoverySession.discoverySessionWithDeviceTypesMediaTypePosition(

this.captureDevice = AVCaptureDeviceDiscoverySession.discoverySessionWithDeviceTypesMediaTypePosition( <any>[AVCaptureDeviceTypeBuiltInWideAngleCamera], AVMediaTypeVideo, this.preferFrontCamera ? AVCaptureDevicePosition.Front : AVCaptureDevicePosition.Back ).devices.firstObject;

If I'm correctly guessing what the issue might be, I think it might be related to those lines. I think in some cases the wrong camera might be getting used.

https://developer.apple.com/documentation/avfoundation/avcapturedevicetypebuiltinwideanglecamera

Has anyone else seen any similar or related issue?

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

No branches or pull requests

1 participant