Baseflow / Baseflow/flutter-permission-handler

[Bug]: Permission on Windows is granted but not showing on Settings > Privacy

Open
#1,427 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
2.2k
Forks
970
Avg merge
14h 22m
Merged PRs (30d)
2

Description

### Please check the following before submitting a new issue.

- [x] I have searched the [existing issues](https://github.com/baseflow/flutter-permission-handler/issues).
- [x] I have carefully [read the documentation](https://github.com/Baseflow/flutter-permission-handler/blob/main/permission_handler/README.md) and verified I have added the required platform specific configuration.

### Please select affected platform(s)

- [ ] Android
- [ ] iOS
- [x] Windows

### Steps to reproduce

Add permission handler to windows to get permission access from windows but it did not create a permission on windows system privacy.

### Expected results

The camera is should have added to windows permission privacy

### Actual results

The camera is not added to windows permission privacy

![Image](https://github.com/user-attachments/assets/87d5e601-3c4f-4097-b555-a779a62a25e3)

### Code sample

Code sample

```dart
await Permission.camera.onGrantedCallback(() {
print('granted');
}).onDeniedCallback(() {
print('denied');
}).request();
```

```text
granted
```

### Screenshots or video

Screenshots or video demonstration

[Upload media here]

### Version

11.3.1

### Flutter Doctor output

Doctor output

```console
[√] Flutter (Channel stable, 3.27.2, on Microsoft Windows [Version 10.0.22621.2715], locale en-ID)
• Flutter version 3.27.2 on channel stable at D:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 68415ad1d9 (6 days ago), 2025-01-13 10:22:03 -0800
• Engine revision e672b006cb
• Dart version 3.6.1
• DevTools version 2.40.2

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\Ridwan\AppData\Local\Android\sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.2)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.9.34622.214
• Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2024.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)

[√] VS Code (version 1.96.4)
• VS Code at C:\Users\Ridwan\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.102.0

[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22621.2715]
• Chrome (web) • chrome • web-javascript • Google Chrome 131.0.6778.140
• Edge (web) • edge • web-javascript • Microsoft Edge 132.0.2957.115

[√] Network resources
• All expected network resources are available.

• No issues found!
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.