-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
iOS: Ti.Media.openPhotoGallery does not respect Selected Photos permission #13277
Comments
I am going to see about using |
The reason why it shows all photos is because of the |
Sorry if I am not understanding the reply. I tested the If I select that the app only has permission to a few photos and then Since iOS is set up in a way to allow the permission at a photo by photo level, it does feel important for Let me know if there is a different way to explain what I am seeing. |
Yep, the reason for that is that the |
Thank you. I am using the |
Sorry, I mean |
Oh, so if we need a way to select multiple at a time, we should go with My recommendation would still be to treat this as a bug since that is hard to see happening and I would think the expectation is always to follow the OS permissions. |
I have searched and made sure there are no existing issues for the issue I am filing
Description
When we use
Ti.Media.openPhotoGallery
for selecting photos in our application, after selecting iOS Photo Permissions to only allow access to "selected photos", theopenPhotoGallery
function still gives the app access to all photos.Expected Behavior
After our code calls
Ti.Media.openPhotoGallery
like https://docs.axway.com/bundle/Titanium_SDK_allOS_en/page/camera_and_photo_gallery_apis.html#CameraandPhotoGalleryAPIs-Gallery, we do get a popup allowing us to select the photo permission and after that, a gallery pops up.If I use the Selected Photos option, I can see later in Settings that the limited number of photos are showing they are accessible, but the app still allows all photos.
Details from iOS and this new security is: https://developer.apple.com/documentation/photokit/delivering_an_enhanced_privacy_experience_in_your_photos_app
Actual behavior
This shows the permissions in Settings about which photos should be available:

When I then go into the app and run the code that does

Ti.Media.openPhotoGallery
I see these photos as options to select:I would expect to see only the 3 photos I gave permission to.
Reproducible sample
We have some other code around this for the callbacks (which work as expected) but this is the code with some extra
console
statements to show how we are opening this option.Steps to reproduce
In our case, the reproduction is that once the dialog box opens the first time asking which photo permissions to use, choose "Selected Photos" and just select a few photos. You can then verify that inside Settings to show it is only allowing access to some photos.
In the application, you should see all photos available.
Platform
iOS
SDK version you are using
10.1.1.GA
The text was updated successfully, but these errors were encountered: