flutter-permission-handler icon indicating copy to clipboard operation
flutter-permission-handler copied to clipboard

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

Open RUSSCITY opened this issue 2 years ago • 3 comments

Please check the following before submitting a new issue.

Please select affected platform(s)

  • [ ] Android
  • [ ] iOS
  • [X] 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

RUSSCITY avatar Apr 15 '24 07:04 RUSSCITY

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

Arthurius avatar Apr 22 '24 10:04 Arthurius

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

halima1802 avatar May 06 '24 08:05 halima1802

"Commenting to keep the thread open"

reza00farjam avatar Aug 15 '24 08:08 reza00farjam

Any news on this issue?

Arthurius avatar Sep 04 '24 14:09 Arthurius

@Arthurius, this issue has been solved 14 days ago in version 0.1.3+2 of the permission_handler_html package.

Please try to update to the latest version by running flutter pub upgrade permission_handler_html and let us know if you still run into issues.

mvanbeusekom avatar Sep 04 '24 14:09 mvanbeusekom