You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have been using this package in our project with no issues but since I installed it in on android 13 it won't return albums list from getAssetPathList method. I tried it on android 11 it works fine. here is the code to reproduce:
var result = await PhotoManager.requestPermissionExtend();
if (result.isAuth) {
// success
//load the album list
List<AssetPathEntity> albums = await PhotoManager.getAssetPathList(type: RequestType.image, onlyAll: true);
List<AssetEntity> media = [];
if (albums.isNotEmpty) {
media = await albums[0].getAssetListPaged(page: page, size: 60);
}
if (page == 0) {
widget.onInitialize(media.isNotEmpty);
}
if (media.isEmpty) {
lastPage = page;
return;
}
if (page == 0) {
_selectAsset(media.first);
}
setState(() {
_mediaList.addAll(media.map((asset) => AppAssetEntity(asset)));
});
scrollPosition.allLoaded = media.isEmpty;
scrollPosition.loading = false;
} else {
// fail
PhotoManager.openSetting();
/// if result is fail, you can call `PhotoManager.openSetting();` to open android/ios applicaton's setting to get permission
}
The text was updated successfully, but these errors were encountered:
Describe the bug
I have been using this package in our project with no issues but since I installed it in on android 13 it won't return albums list from getAssetPathList method. I tried it on android 11 it works fine. here is the code to reproduce:
The text was updated successfully, but these errors were encountered: