-
Notifications
You must be signed in to change notification settings - Fork 271
Crash when opening the camera/photo selector [PUPhotoPickerHostViewController _setCameraDevice:]: unrecognized selector sent #176
Comments
I've confirmed that is is also occurs on an iPhone 8 and with the demo NMessenger project. Is there a config that I'm missing? I have all of the permissions set in info.plist |
@lordjjl , have you managed to solve the issue?
Thanks. |
@dodikk unfortunately your PR don't solve this bug. I had to implement my own CameraViewController class (a very simple use of UIImagePickerController). |
@alexandremorgado , glad to hear you've solved the issue. Could you please share your class as a comment or as a pull request? |
@dodikk I was using the detault CameraViewController instance from NMessengerBarView: So I just replaced by a simple class that I named PhotosViewController, it was not necessary change anything into NMessenger lib. Something like this:
|
@alexandremorgado , thanks for sharing. |
This is potentially an iPhone X issue as I haven't had an opportunity to test on another device. Disabling the camera permissions allows the iOS photo picker to display correctly, so I think the crash is occurring in the custom camera view.
The text was updated successfully, but these errors were encountered: