Firelands128 / photo_gallery

A Flutter plugin that retrieves images and videos from mobile native gallery.
BSD 3-Clause "New" or "Revised" License
68 stars 62 forks source link

Album.listMedia hangs on Android 10 #63

Closed starikovvm closed 1 year ago

starikovvm commented 1 year ago

The issue appeared after updating photo_gallery from 1.1.1 to 2.0.1. It worked well earlier.

    final List<Album> imageAlbums = await PhotoGallery.listAlbums(
      mediumType: MediumType.image,
    );
    try {
      final album = imageAlbums.firstWhere((album) => album.isAllAlbum);
      final mediaPage = await album.listMedia(
        take: min(_mediaPageSize, album.count),
        skip: 0,
      );  // <- this method hangs and never returns
    ...

Reproducable on devices and emulators using android 10 (API 29)

Firelands128 commented 1 year ago

It would be solved after version 2.0.2. Please upgrade to latest version.

Since55 commented 1 year ago

have same issue, version 2.0.2, 2.1.1. Reproducing only if passing [skip] parameter (Android 10)

alfonsotesone commented 1 year ago

Same problem here 😢

Edit: I confirm that the problem only occurs when the skip parameter is present.

dhpl commented 5 months ago

any update, same problem here