covid19-passbook-generator icon indicating copy to clipboard operation
covid19-passbook-generator copied to clipboard

[BUG] it opens with my front camera as default

Open daTr0ll opened this issue 1 year ago • 1 comments

Contact Details

[email protected]

What happened?

Please, set the rear camera as default for scanning a certificate.

What browsers are you seeing the problem on?

Safari

Are you browsing using

an iPhone

Anything else?

No response

daTr0ll avatar Jul 22 '22 16:07 daTr0ll

Hey there 👋🏼 Thanks for your first issue. This is an automated message but a real human will handle your issue very shortly.

github-actions[bot] avatar Jul 22 '22 16:07 github-actions[bot]

Hi there, Under the camera live feed you can use a selector to change the camera. The thing is, I can either get the list of the camera and initialise on the first the phone gave me or ask it to display the rear camera but without any garantee it will do it.

And iPhone pro have 2 rear camera. A macrophoto one and the "normal" one. If I ask the phone to "use the rear camera" it use ... the macro one -_-. Making users of iPhone pro unable to use it. I observed kinda similar behavior with some Samsung phones.

Soooo, I decided to make it accessible to more people by putting a select and, by default, using the first of the list I get from the phone (there's no details in the list returned like rear or front to use 😢 )

clawfire avatar Sep 05 '22 19:09 clawfire