Single Image picker in Flutter on iOS without permission

488

Solution 1

From Apple documentation:

PHPickerViewController is a new picker that replaces UIImagePickerController. Its user interface matches that of the Photos app, supports search and multiple selection of photos and videos, and provides fluid zooming of content. Because the system manages its life cycle in a separate process, it’s private by default. The user doesn’t need to explicitly authorize your app to select photos, which results in a simpler and more streamlined user experience.

This library uses PHPickerViewController as seen here

Solution 2

The old UIImagePickerController allowed it on older iOS'es, but it has been deprecated, since iOS 14.

The Flutter ImagePicker plugin uses the PHPicker in the iOS code, as I checked for their code on Github, and it allows you to pick an image from the user without requesting permissions. I recommend highly to use that plugin.

Share:
488
Marcin Szałek
Author by

Marcin Szałek

Well, I write a bit of code from time to time. On occasion, it happens to compile.

Updated on December 29, 2022

Comments