Skip to content

AutoFocus not working as expected #414

Description

@Mike-tech

Hi there

I recently updated my ZXing.Net.Mobile and ZXing.Net.Mobile.Forms to v2.1.47 in my Xamarin project. Version was downloed using Nuget. Since doing this the auto focus stop working as expected. It doesn't do anything when you moved the camera towards a barcode.

The only way to make it work in this new version is to ensure the camera is locked facing the barcode when you initiate the camera, then the auto focus works.

I even setup a brand new vanilla Xamarin project and installed this version and the problem exists. The workaround in the link below seems to make the auto focus works as expected. But i rather not use this work around:
https://forums.xamarin.com/discussion/72077/zxing-barcode-reader-autofocus

I am using a Samsung Galaxy S7 and i've added all camera permission and used the AutoFocus() option with no success. I Is this a known issue or something i haven't done?

Thanks in advance

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