Baseflow / Baseflow/flutter-permission-handler
[Bug]: Photo permission, 'Selected Photos Access enabled' error on Android 34
- 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

### 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

```
Contributor guide
Assessment
This issue has not been assessed yet.