Baseflow / Baseflow/flutter-permission-handler

[Bug]: Photo permission, 'Selected Photos Access enabled' error on Android 34

Open
#1,243 18 comments 1 reaction 0 assignees View on GitHub
P2 platform: android type: bug
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)

- [X] Android
- [ ] iOS
- [ ] Windows

### Steps to reproduce
AndroidManifest.xml








When selecting 'Selected Photos Access enabled', it always return PermissionStatus.permanentelyDenied
![2](https://github.com/Baseflow/flutter-permission-handler/assets/61686168/ef7960bc-b727-4884-b90e-0a31171e1ecb)

### Expected results

PermissionStatus.granted

### Actual results

PermissionStatus.permanentelyDenied

### Code sample

Code sample

```dart
late PermissionStatus newPermReq;

final deviceInfo = DeviceInfoPlugin();
if (Platform.isAndroid) {
final androidInfo = await deviceInfo.androidInfo;
final androidSdkInt = androidInfo.version.sdkInt ?? 0;
if (androidSdkInt < 33) {
newPermReq = await Permission.storage.request();
} else {
newPermReq = await Permission.photos.request();
}

} else if (Platform.isIOS) {
newPermReq = await Permission.photos.request();
}
```

### Screenshots or video

Screenshots or video demonstration

[Upload media here]

### Version

11.1.0

### Flutter Doctor output

Doctor output

```console
![01](https://github.com/Baseflow/flutter-permission-handler/assets/61686168/7135a115-6342-4710-bbc1-2199b7a7554a)

```

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.