Detached app crashes on ImagePicker


#1

Hey, Expo is awesome!

Getting a crash with detached app when trying to use ImagePicker. Seems like there is some issue with asking photo library/camera permission. Xcode shows: CRASHING_DUE_TO_PRIVACY_VIOLATION

Camera and PhotoLibrary work fine in Expo app. Tried on a clean project right after detaching - same issue. Any ideas?

Also, do you plan adding support for phone authentification with FB Account Kit? One of the reasons i had to detach is to use it (https://github.com/underscopeio/react-native-facebook-account-kit)

Cheers!


#2

Hi, what do the camera and photos usage descriptions look like under your detached project’s Info.plist?


#3

Seems like I don’t have these items


#4

Ah, sorry that wasn’t obvious. You’d need to add those keys for those APIs to work.

I can make it so we auto-configure those for you when you detach. I’ll make myself a task. Thanks for raising this!


#5

Yep, added, works great. Thank you so much!


#6

I am facing same problem…but my app is not detached. so dont have any plist file.
what can i do?


#7

hi Guys,

i am still facing a issue when I take the picture and press OK button the app get restarted.in all mobiles like redmi note4 and moto g2. am trying to resolve from one day. am not able to solve this can u please help me thanks in advance

i update the version react-native-image-picker from 0.26.3 to 0.22.9. app getting like “unfortunately app has stopped” showing pop up like this.

config

“react-native”: “^0.42.3”,
“react-native-image-picker”: "0.22.9"
db is firebase

options are

var options = {
title: ‘Select Avatar’,
quality: 0.6,
storageOptions: {
skipBackup: true,
path: ‘images’
}
};