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

[Bug]: Firefox: TypeError: 'camera' (value of 'name' member of PermissionDescriptor) is not a valid value for enumeration PermissionName #1308

Open
3 of 5 tasks
RUSSCITY opened this issue Apr 15, 2024 · 2 comments
Assignees

Comments

@RUSSCITY
Copy link

Please check the following before submitting a new issue.

Please select affected platform(s)

  • Android
  • iOS
  • Windows

Steps to reproduce

Request await Permission.camera.status when running the app on web in Firefox, or
request: await Permission.camera.isGranted

Expected results

I expect to get the current permission status

Actual results

I get this error:

TypeError: 'camera' (value of 'name' member of PermissionDescriptor) is not a valid value for enumeration PermissionName

Code sample

Code sample
      final status = await Permission.camera.status;

Screenshots or video

Screenshots or video demonstration

[Upload media here]

Version

11.3.1

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.19.5, on Microsoft Windows [Version 10.0.22631.3447], locale de-DE)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.5)
[√] Android Studio (version 2023.2)
[√] Connected device (3 available)
[√] Network resources
@mvanbeusekom mvanbeusekom self-assigned this Apr 15, 2024
@Arthurius
Copy link

I have the same issue. It also happens with Permission.microphone

@halima1802
Copy link

Has this issue been solved? For both microphone and camera?

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

4 participants