Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support to ask if Camera is available #370

Open
LordTylus opened this issue Sep 4, 2023 · 0 comments
Open

Add Support to ask if Camera is available #370

LordTylus opened this issue Sep 4, 2023 · 0 comments

Comments

@LordTylus
Copy link

Hello there,

our mobile app has a function, where the User has to scan a qr code as means of Authentifikation. Since EVERY iOS and Android device nowadays has a camera available this is no problem.

But on Desktop or in the iOS simulator I have no access to a camera or there is just none available. When i use the BarcodeService on Simulator things dont function at all (for obvious reasons), and my only workaround right now is to ask the Platform if isDesktop() returns true.

This works well for the Desktop. But Sadly not for the simulator. So, it would be amazing, if I either could ask a DeviceService for example if and how many Cameras are available. Or if I could figure out that I am on Simulator any other way. Similarily, it would also be very nice, if I could easily check, if I have camera permissions. Because if the user didn't grant that, I want to offer him the alternative as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant