react-native-image-picker icon indicating copy to clipboard operation
react-native-image-picker copied to clipboard

[🐛] Limited permission not work for iOS

Open nicolasdevienne opened this issue 4 years ago • 17 comments

Limited permission not work for iOS. When I ask user to choose permission to access Library, he can choose all photos or just 1, 2 or 3 photos for example. When he choose just 1, 2 or 3 photos, just after, launchImageLibrary shows all photos in Library. No filter is apply.

Can you help me ?

nicolasdevienne avatar Jun 11 '21 15:06 nicolasdevienne

same issue here.

jeeyunlee-fe avatar Jun 16 '21 01:06 jeeyunlee-fe

same issue here.

https://github.com/react-native-image-picker/react-native-image-picker/blob/1878acbca5ca40873cdbe047869f2e6337b28b49/ios/ImagePickerManager.m#L283

iOS 14 Limited permission not support in this checkpermission.

danehaan avatar Jun 16 '21 01:06 danehaan

I get the permission dialog after taking a photo with saveToPhotos: true. Selecting some photos has no effect the next time I use launch the image library.

tomgransden avatar Jun 17 '21 16:06 tomgransden

react-native-image-crop-picker works perfectly for iOS ! :)

nicolasdevienne avatar Jun 19 '21 20:06 nicolasdevienne

This is a critical issue I think...I need a picker but it has to work properly in the latest iOS...are you guys saying limited selection functionality isn't supported by this library?

@nicolasdevienne @hoony11 @jeeyunlee-fe

timothyerwin avatar Aug 26 '21 16:08 timothyerwin

@timothyerwin that's why I used react-native-image-crop-picker for iOS !

nicolasdevienne avatar Aug 26 '21 19:08 nicolasdevienne

-> Has anybody found any workaround for this?

(Sorry but this library is unusable for ios without fixing this issue.)

hazyikmis avatar Sep 06 '21 08:09 hazyikmis

Did my best Obj-C effort to integrate limited photo support here: https://github.com/react-native-image-picker/react-native-image-picker/pull/1814

thibmaek avatar Sep 07 '21 09:09 thibmaek

any update

MusabBasheer avatar Oct 16 '21 22:10 MusabBasheer

Any updates on this issue ? The library is awesome but this issue is critical for our users. Thanks

cancerberoSgx avatar Nov 10 '21 17:11 cancerberoSgx

I'm also looking for this feature. Any updates? 🙂

thatgriffith avatar Jan 19 '22 12:01 thatgriffith

any news?

gurbela avatar Apr 27 '22 12:04 gurbela

We decide to use https://github.com/ivpusic/react-native-image-crop-picker instead. Works like a charm!

thatgriffith avatar Apr 27 '22 14:04 thatgriffith

I really love this library, and compared to react-native-image-crop-picker (which size is 2.15 MB) it's very light with 145 kB size, which is very important, especially if you just need an image picker for profile photo update... but it's really shame that this library is this popular but the ios 14+ permission issue still exists.

Ggayane avatar Apr 28 '22 16:04 Ggayane

Any suggestion for this ????

FadiAboMsalam avatar May 22 '22 09:05 FadiAboMsalam

Any suggestion for this ????

We switched to https://github.com/ivpusic/react-native-image-crop-picker and it works fine now.

thatgriffith avatar May 22 '22 09:05 thatgriffith

Any update on that other than changing library? react-native-image-crop-picker have issues on its own such as GIF support on iOS.

jeromegrosse avatar Jul 04 '22 15:07 jeromegrosse

Any update on this?

navaspavil avatar Mar 01 '23 05:03 navaspavil

Any update on this?

fellipesnoww avatar Jun 20 '23 19:06 fellipesnoww

Would happily review PRs that solve this.

Johan-dutoit avatar Jun 21 '23 09:06 Johan-dutoit

Technically, the way image-picker works is correct. Just because limited access has been selected, doesn't affect the photos displayed when calling launchImageLibrary. That's how it natively works.

This can be seen all over the Apple forums and Stack overflow

  • https://developer.apple.com/forums/thread/663098
  • https://developer.apple.com/forums/thread/658485
  • https://stackoverflow.com/questions/63369948/ios-14-still-display-entire-photo-library-despite-of-limited-status

~A new method to prompt for additional photos would be useful though.~ react-native-permissions already solves this.

Johan-dutoit avatar Jun 21 '23 10:06 Johan-dutoit

@Johan-dutoit I can still access images that weren't given permissions though. So the picker does not limit the photos to the ones that have been given permission.

jameskim917 avatar Jun 28 '23 05:06 jameskim917

Hey @Johan-dutoit, How react-native-permissions solve this issue? The only related thing they provide is the method openLimitedPhotoLibraryPicker which is for updating the selected photos, not for picking one.

franbe7 avatar Jul 04 '23 15:07 franbe7

#2093

maksim14174 avatar Jul 31 '23 14:07 maksim14174

Facing this issue as well @Johan-dutoit. Would you please be able to direct to what changes do we need to add from react-native-permissions library? Or is it just sorted internally with the upgrades? Thanks 🙏🏽

NiharR27 avatar Sep 07 '23 11:09 NiharR27

is there any solution for this? this doesn't seems fit into the terms "Selected photos"...

fxricky avatar Mar 26 '24 14:03 fxricky