fluttercandies / flutter_photo_manager

A Flutter plugin that provides images, videos, and audio abstraction management APIs without interface integration, available on Android, iOS, macOS and OpenHarmony.
https://pub.dev/packages/photo_manager
Apache License 2.0
691 stars 314 forks source link

[How to use] How can the user only select photos without explicitly authorize the app? #1222

Open dayuy opened 2 days ago

dayuy commented 2 days ago

Platforms

iOS 16

Description

According to Determine Your App's Access Needs, PHPickerViewCOntroller , the user interface is private by default, meaning the user doesn't need to explicitly authorize the app to select photos. How can I implement this in photo_manager?

My code

dependencies:
  photo_manager: ^3.6.1

Try do it

No response

fluttercandies-dev commented 2 days ago

AI Summary: The user wants to use photo_manager to allow users to select photos without explicit authorization, similar to the behavior of PHPickerViewController on iOS. They are seeking guidance on how to achieve this functionality within the photo_manager package.

AlexV525 commented 2 days ago

Can you use PhotoManager.presentLimited standalone?

dayuy commented 2 days ago

Can you use PhotoManager.presentLimited standalone?

Thanks for your reply, It doesn't seem to be working, The effect I'm aiming for is shown in the image below, appearing only in the iPhone photo permissions settings under ONE-TIME PHOTO SELECTION. I'll look into it further.

image

AlexV525 commented 1 day ago

Looks like you should use image_picker instead.

dayuy commented 2 hours ago

Looks like you should use image_picker instead.

yep, there is an issue being tracked.