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

Allow access to some more photos #195

Open
idevChandra6 opened this issue Aug 30, 2021 · 5 comments
Open

Allow access to some more photos #195

idevChandra6 opened this issue Aug 30, 2021 · 5 comments

Comments

@idevChandra6
Copy link

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.

@Rj707
Copy link

Rj707 commented Feb 20, 2022

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.

@idevchandra
Copy link

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

@Rj707
Copy link

Rj707 commented Feb 21, 2022

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
Copy link

Rj707 commented Feb 22, 2022

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

@Rj707
Copy link

Rj707 commented Feb 23, 2022

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)
        }
    }
}

}`

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

3 participants