capawesome-team / capacitor-plugins

⚡️ Community plugins for Capacitor. Supports Android, iOS and the Web.
https://capawesome.io/plugins/
234 stars 38 forks source link

capacitor-file-picker is not obeying permissions settings of photo library #236

Closed venna-kalyani closed 3 months ago

venna-kalyani commented 3 months ago

Plugin(s)

Current problem

We came across a scenario and verified, Filepicker.pickMedia() method is not returning photos based on photos permission that the user has selected (ex: limited access - expecting to return only limited selected photos)

So we are looking for alternative and using Camera.pickLimitedLibraryPhotos() method, when user having limited access permission, while using we get the below output

[{"path":"file:///private/var/mobile/Containers/Data/Application/5A9905CD-7B18-4113-88C7-FC22E13A8ED6/tmp/photo-1.jpg","webPath":"capacitor://localhost:8080/capacitor_file/private/var/mobile/Containers/Data/Application/5A9905CD-7B18-4113-88C7-FC22E13A8ED6/tmp/photo-1.jpg","format":”jpeg”}]

We need the actual file name here for further handling. Any way to get that actual file name here.?

Either way let me know how we can achieve this.

"@capacitor/camera": "^4.1.5", "@capawesome/capacitor-file-picker": "^0.6.3",

Preferred solution

It would be good if capacitor-file-picker returns photos based on users permission (like : limited , allow full access)

Alternative options

It would be good if capacitor-file-picker returns photos based on users permission (like : limited , allow full access)

Additional context

No response

Before submitting

robingenz commented 3 months ago

I close this as not planned. The Capacitor File Picker plugin uses the PHPickerViewController, which does not require any permissions and therefore is not affected by this setting (see here).