React-native-image-picker: Crashes on Ios

Created on 14 Aug 2017  路  26Comments  路  Source: react-native-image-picker/react-native-image-picker

Once I open image picker on an Ipad or an Iphone, the app closes.

stale

Most helpful comment

You need to add

<key>NSPhotoLibraryUsageDescription</key> <string>This app requires access to the photo library.</string> <key>NSCameraUsageDescription</key> <string>This app requires access to the camera.</string>

in _Info.plist_ file to fix this issue

All 26 comments

The app will instantly crash if you haven't got a "Privacy - Camera Usage Description" in your Info.plist requesting permissions to use the camera

Yes, I have those permissions. I've just figured out that if I wrap the image picker launcher inside an event crashes. I'm trying to figure out what's happening.

Having the same issue here. Works fine on simulator, crashes immediately on device upon taking a photo or choosing from library.

+1

+1

+1

+1

+1 same issue

You need to add

<key>NSPhotoLibraryUsageDescription</key> <string>This app requires access to the photo library.</string> <key>NSCameraUsageDescription</key> <string>This app requires access to the camera.</string>

in _Info.plist_ file to fix this issue

+1

I found that the accessing photo permission is not set and it never asked on iOS 11. I solved my issue by asking the photo permission before I use the ImagePicker component.

Try this one: https://github.com/yonahforst/react-native-permissions

@ferminmoli did you figure out a solution?

+1

@ferminmoli was you found any solution or reason behind this crash.
I also struggle with this problem and even I have already ask those permissions.

Any fix for this please?

+1

I've crashed for the first time to ask permission to access library, then It worked, but cannot understand why?

+1

+1 , same issue

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

same issue in iphone 7 (ios 12.2).NSCameraUsageDescription,NSPhotoLibraryUsageDescription,NSPhotoLibraryAddUsageDescription, permitions already added in info.plist.
i found that there is error giving in debugger as follows.
Message from debugger: Terminated due to memory issue

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.

+1. Should not be stale.

+ 1 app crash when adding image just taken from camera

You need to add

<key>NSPhotoLibraryUsageDescription</key> <string>This app requires access to the photo library.</string> <key>NSCameraUsageDescription</key> <string>This app requires access to the camera.</string>

in _Info.plist_ file to fix this issue

I am adding this permission in Info.plist still launchImageLibrary in debugging and releasing mode crash..
Any fix for this please?

Was this page helpful?
0 / 5 - 0 ratings