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
[10.2.0] Permission.photos.status always returns PermissionStatus.denied on Android 12 #944
Comments
Needs to be fixed, it works properly as soon as I downgrade permission_handler and permission_handler_android to 10.1.0. |
same question |
2395c10#r87752291
|
I've been experiencing exactly this issue for Android versions 12.0 and before. Works fine on Android 13.0. Any idea of how to solve this or a workaround? |
Same problem |
I ran into the issue with |
Same problem here |
I've fixed this by checking for I added the following to my <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="32"/>
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/> and in flutter: if (Platform.isAndroid) {
final androidInfo = await DeviceInfoPlugin().androidInfo;
if (androidInfo.version.sdkInt <= 32) {
/// use [Permissions.storage.status]
} else {
/// use [Permissions.photos.status]
}
} |
Same question |
I spot that the version 10.0.0 works only if I set the android version to 10.0.0 too |
Same is happening with me on Android 11 |
Until they fix this, i guess we have to work with @hinrikHelga solution. |
same question |
Android 11 and Android 13 works but android 12 ( sdk 31 ) problem still exist. |
Tried this on android 13 & 11, neither currently working. Using permission_handler: ^10.2.0 and targeting api 33 |
any update or fix? |
Got the same issue . @hinrikHelga 's solution worked for me. Thanks |
I hope this gets a fix since some packages like Agora use this version of the Permission handler so we cannot downgrade it. |
Tried @hinrikHelga solution but didn't get rid of " No permissions found in manifest for: []9". Permission.photos is always denied. Running Android 12 and target 31. |
Hi, any updates on this issue? I still have a problem with that. |
bluetoothConnect & bluetoothScan has same issue |
Is there any workaround for this currently? |
@carman247 as far as I know, 10.1.0 is latest working version. |
No progress...? I cannot upgrade this lib since this issue happened. |
According to the documentation: https://developer.android.com/about/versions/14/changes/partial-photo-video-access and https://developer.android.com/about/versions/13/behavior-changes-13#granular-media-permissions you need to grand permissions to access photos on Android 13 and higher. Android 12 and lower need to grand different permissions like readExternalStorage and writeExternalStorage to access photos. I don't think this is a bug in the permission handler. It is also not introduced in 10.1.0. Support for Android 13 was introduced by ADDING permissions for photo's. I have to test the behaviour on Android 12 and below, but it seems to work as expected. I'll discuss within the team to see if this is something we would like to change in the future or if we need to add additional documentation to make things clear. Either way, it would be an enhancement. The solution of @hinrikHelga would be the way to go until further notice. |
🔙 Regression
Old (and correct) behavior
Permission.photos.status returns PermissionStatus.granted on Android 12
Current behavior
Permission.photos.status always returns PermissionStatus.denied on Android 12
Reproduction steps
Call Permission.photos.status on Android 12
Configuration
Properly setup AndroidManifest.xml.
It worked well on 10.1.0.
Version:
10.1.0 -> 10.2.0
The text was updated successfully, but these errors were encountered: