-
Notifications
You must be signed in to change notification settings - Fork 30.3k
[image_picker] _picker.pickMultiImage launches camera instead of gallery on IOS 12 #96903
Copy link
Copy link
Closed
flutter/plugins
#4718Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work liste: OS-version specificAffects only some versions of the relevant operating systemAffects only some versions of the relevant operating systemp: image_pickerThe Image Picker plugin.The Image Picker plugin.packageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work liste: OS-version specificAffects only some versions of the relevant operating systemAffects only some versions of the relevant operating systemp: image_pickerThe Image Picker plugin.The Image Picker plugin.packageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
I'm using the image_picker dependency for my application and I'm using it both for image and video selection.
However for video selection I used to execute
_picker.pickMultiImage(..)which seems to be working fine on Android and on latest iOS devices.However users are now reporting that on iOS12 this triggers the camera instead of the image pickers.
The release notes state:
So I would suspect if I run this on an iOS12 device to just launch the single image picker instead, however I suspect that in this fallback scenario that is implemented the image source is defaulted to camera instead of gallery.
To make it work however I needed to write myself something like this:
So this works for me, however I think it should be fixed in the library to fallback to the gallery source instead of the camera source.