Gallery icon indicating copy to clipboard operation
Gallery copied to clipboard

Allow access to some more photos

Open idevChandra6 opened this issue 3 years ago • 5 comments

With the new app privacy settings, we can allow some photos accessed by the application. Also, we can trigger to allow user to select some more photos accessed by the app. Something like "Select more photos..." shown in this image https://i.stack.imgur.com/VG7p9.jpg.

The app does not trigger this alert always. We can manually trigger this. Wondering if you can add this method call through a button on the picker. Please let us know.

Thank you.

idevChandra6 avatar Aug 30 '21 00:08 idevChandra6

Plus the library doesn't refresh the more photos selected, you will have to either kill the app or go back and come on the screen where you are using Gallery library to view the recently more selected photos.

Rj707 avatar Feb 20 '22 17:02 Rj707

Plus the library doesn't refresh the more photos selected, you will have to either kill the app or go back and come on the screen where you are using Gallery library to view the recently more selected photos.

Yes, I end up doing the same. I really wish "Add More" feature would be implemented.

Attached the screenshot of Reddit iOS app. IMG_C5F7E3D3E745-1

idevchandra avatar Feb 21 '22 07:02 idevchandra

in my case when the user lands on the Screen where the Gallery is being used, for the first time upon selecting photos(Select Photos) the photos being displayed by Gallery are refreshed. But the next time, upon selecting more photos(Select More Photos) the photos being displayed by Gallery are NOT refreshed. Select More

Rj707 avatar Feb 21 '22 10:02 Rj707

the only solution to this is set the PHPhotoLibraryPreventAutomaticLimitedAccessAlert set to true in info.plist

Rj707 avatar Feb 22 '22 09:02 Rj707

found another quick fix to this, though not a good one.

`extension GalleryController: PHPhotoLibraryChangeObserver {

public func photoLibraryDidChange(_ changeInstance: PHChange) {
    DispatchQueue.main.async { [unowned self] in
        // Obtain authorization status and update UI accordingly
        setup()

        if let pagesController = makePagesController() {
          g_addChildController(pagesController)
        } else {
          let permissionController = makePermissionController()
          g_addChildController(permissionController)
        }
    }
}

}`

Rj707 avatar Feb 23 '22 18:02 Rj707