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

Camera.pickImages(...) ignores limited permission state #1325

Closed
robingenz opened this issue Dec 10, 2022 · 2 comments
Closed

Camera.pickImages(...) ignores limited permission state #1325

robingenz opened this issue Dec 10, 2022 · 2 comments

Comments

@robingenz
Copy link
Contributor

Bug Report

Plugin(s)

Capacitor Version

💊   Capacitor Doctor  💊

Latest Dependencies:

  @capacitor/cli: 4.6.1
  @capacitor/core: 4.6.1
  @capacitor/android: 4.6.1
  @capacitor/ios: 4.6.1

Installed Dependencies:

  @capacitor/cli: 4.6.0
  @capacitor/core: 4.6.0
  @capacitor/android: 4.6.0
  @capacitor/ios: 4.6.0

[success] iOS looking great! 👌
[success] Android looking great! 👌

Platform(s)

  • iOS

Current Behavior

If the user only allows access to specific images in the app's permissions, all images on the device will still appear in Photo Picker (Camera.pickImages(...)).

Restricted access to specific photos All photos selectable
Simulator Screen Shot - iPhone 13 - 2022-12-10 at 22 31 18 Simulator Screen Shot - iPhone 13 - 2022-12-10 at 22 34 44

Expected Behavior

I expect the Photo Picker to display only the images for which the user has given permission.

Code Reproduction

I will provide the reproducible example shortly.
Maybe I just misunderstood something.

Other Technical Details

iOS Version: 15.5

Additional Context

I have not much experience with the photo picker on iOS. So far I thought that iOS handles this and restricts access. But apparently the developer has some freedom here.

@jcesarmobile
Copy link
Member

Limited just means that the access to some photos is limited, but not that you can't get those photos.
The limited photos will not include sensitive information such as the exif data. Getting photos from the photo library really doesn't need any permissions, we request the permission so we can get the exif data.
The image picker is provided by Apple and they don't offer a way of only showing the limited photos.
If you want to only show the limited photos, Camera plugin has getLimitedLibraryPhotos() method that returns all the limited photos, you'll have to create an html chooser with those pictures if you want users to choose.

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2022
@ionitron-bot
Copy link

ionitron-bot bot commented Jan 11, 2023

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jan 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants