yudielcurbelo/react-qr-scanner

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

Closed this issue · 3 comments

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"

I have the same isue for all browsers on windows

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.

Pinging this issue.