Skip to content
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 report] getAssetPathList return empty list ( i tried #852 ) #917

Closed
AsheKR opened this issue Mar 30, 2023 · 1 comment
Closed

[Bug report] getAssetPathList return empty list ( i tried #852 ) #917

AsheKR opened this issue Mar 30, 2023 · 1 comment

Comments

@AsheKR
Copy link

AsheKR commented Mar 30, 2023

Version

2.5.2

Platforms

Android

Device Model

Pixel 6 API 32

flutter info

[!] Flutter (Channel stable, 3.7.8, on macOS 13.2.1 22D68 darwin-arm64, locale en-KR)
    • Flutter version 3.7.8 on channel stable at /Users/home/bin/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 90c64ed42b (9 days ago), 2023-03-21 11:27:08 -0500
    • Engine revision 9aa7816315
    • Dart version 2.19.5
    • DevTools version 2.20.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

How to reproduce?

The getAssetPathList returns an empty list.

await PhotoManager.requestPermissionExtend();
final result = await PhotoManager.getAssetPathList();
// result always return empty list

I know that you said it fixed the issue in #852, and I followed all the workarounds in that issue.

  1. READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE, ACCESS_MEDIA_LOCATION, permission request PhotoManager.requestPermissionExtend()
  2. READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE, ACCESS_MEDIA_LOCATION, permission request PhotoManager.requestPermissionExtend(), photos, mediaLibrary
  3. READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE, ACCESS_MEDIA_LOCATION, READ_MEDIA_IMAGES, READ_MEDIA_VIDEO, READ_MEDIA_AUDIO, permission request photos, mediaLibrary, PhotoManager.requestPermissionExtend()
  4. targetSdkVersion to 33

I've tried all of the above, but it returns an empty list.

Logs

No response

Example code (optional)

No response

Contact

No response

@AsheKR
Copy link
Author

AsheKR commented Mar 30, 2023

I was using Emlautor and there were actually no photos in the Gallery. Sorry..

@AsheKR AsheKR closed this as completed Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant