Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
This repository was 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

Description

@DanielDent

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?

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