-
Notifications
You must be signed in to change notification settings - Fork 305
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
[BUG] Android 13 - PhotoManager.getAssetPathList(hasAll: true) returns empty list #852
Comments
FWIW - I also cloned this repository and tried running the example demo on these devices and I see the same behavior. Any pointers on how to resolve or work around this would be greatly appreciated. |
@davidbrenner, @AlexV525 I faced the same issue with android 13, I did everything explained in the documentation with no luck. Then I added and it worked, hope this may help you |
Be aware, emulators won't detect images unless you manually browse them first from the file manager, then a reboot is required in addition. Closing as it seems invalid and not related. |
@AlexV525 and @majd-fouuqhaa - thanks for investigating and for the pointers. I don't know exactly which one unlocked this for me, but I can confirm I got it to work between the 2 of your suggestions (rebooting the emulator and adding Confirmed that this was invalid and good to close. Hopefully if someone else runs into this, the suggestions in this thread work for them as well. |
@davidbrenner |
For Android 13, I added
And used permission_handler final permitted = await Permission.mediaLibrary.request().isGranted &&
await Permission.photos.request().isGranted; Updated: final permitted = await Permission.mediaLibrary.request().isGranted; And it worked. |
I found that in production, if you request without |
Nothing works in my case also , same issue androdi 13 pxel 4 , tried emulator and real device aslo
PhotoManager.getAssetPathList() always returns [] for android 13
|
Describe the bug
On android version 13, PhotoManager.getAssetPathList(hasAll: true) always returns an empty list
To Reproduce
code sample:
Expected behavior
Should return a list of media, as it does on iOS and on android version < 13
Flutter version
Smartphone (please complete the following information):
Log
n/a
The text was updated successfully, but these errors were encountered: