yudielcurbelo / react-qr-scanner

A library to scan QR Codes in react.
https://yudielcurbelo.github.io/react-qr-scanner/
MIT License
223 stars 31 forks source link

List of cameras doesn't work when permission is set to "Ask" #70

Closed JamesCrawley closed 1 week ago

JamesCrawley commented 1 month ago

Device: iPhone 14 Pro Max (but noticing on various Apple iPhone/iPad models)

Issue:

The useDevices hook doesn't return the full list of cameras when browser permission is set to "Ask" rather than "Allow"

Expected:

The useDevices hook should return the full list of cameras as soon as the user grants camera permission to the browser

When Safari' s camera permission is set to "Ask"

[
    {
        "deviceId": "",
        "kind": "videoinput",
        "label": "",
        "groupId": ""
    }
]

Note: Camera 1 here is fallback text provided by me

When Safari's camera permission is set to "Allow"

RossyBundeva commented 1 month ago

I have the same isue for all browsers on windows

stale[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.