# App crashes when using the React Native SDK on iOS without video permissions

**URL:** <https://devforum.zoom.us/t/app-crashes-when-using-the-react-native-sdk-on-ios-without-video-permissions/61159>\
**Category:** React Native\
**Created:** [December 7, 2021, 3:07pm UTC](https://devforum.zoom.us/t/app-crashes-when-using-the-react-native-sdk-on-ios-without-video-permissions/61159 "2021-12-07T15:07:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![blindgaenger](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/blindgaenger/32/25789_2.png) [@blindgaenger](https://devforum.zoom.us/u/blindgaenger)\
**Post date:** [December 7, 2021, 3:07pm UTC](https://devforum.zoom.us/t/app-crashes-when-using-the-react-native-sdk-on-ios-without-video-permissions/61159/1 "2021-12-07T15:07:34Z")

</div>

**Description**  
The app crashes when the user denies the video permissions from the dialog.

The error message shows that the SDK tries to call `showCameraPermissionAlert`, which I guess tries to display the dialog again.

What would be the best way to deal with this situation in my app?

**Errors**

```auto
terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ZPAlertViewMgr showCameraPermissionAlert]: unrecognized selector sent to instance 0x28335fe10'

```

**Which React Native Video SDK version?**  
NPM Package: @zoom1234/react-native-videosdk: 1.1.1  
iOS Framework: zoom-video-sdk-iOS-1.1.1

**Video SDK Code Snippets**  
(no special setup)

**To Reproduce**

1. Fresh app installation
2. Go to a screen that uses the ZoomVideoSdkProvider
3. Accept the audio permission dialog
4. Deny the video permission dialog
5. Attempt to join a session
6. See the app crashing

**Screenshots**  
(standard iOS permission dialog)

**Smartphone (please complete the following information):**

- Device: iPhone XS Max
- OS: iOS 15.1

**Additional context**  
If only video is accepted, but not audio, then the call succeeds. A dialog about missing mic permissions is shown in that case.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 8, 2021, 12:27am UTC](https://devforum.zoom.us/t/app-crashes-when-using-the-react-native-sdk-on-ios-without-video-permissions/61159/2 "2021-12-08T00:27:45Z")

</div>

Hi @blindgaenger, thanks for bringing this to our attention.

We’ll investigate this behavior and let you know as soon as we have an update. I was able to reproduce this in our sample app, so no additional information is needed on your end.

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 9, 2021, 5:54pm UTC](https://devforum.zoom.us/t/app-crashes-when-using-the-react-native-sdk-on-ios-without-video-permissions/61159/3 "2021-12-09T17:54:36Z")

</div>

Hi @blindgaenger,

We have identified a fix for this issue and will be including it in the next release. Please let me know if you are still able to reproduce this after the 5.9.0 release becomes available.

Thanks!

---

<div class="post-metadata">

**Author:** ![blindgaenger](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/blindgaenger/32/25789_2.png) [@blindgaenger](https://devforum.zoom.us/u/blindgaenger)\
**Post date:** [December 10, 2021, 7:36am UTC](https://devforum.zoom.us/t/app-crashes-when-using-the-react-native-sdk-on-ios-without-video-permissions/61159/4 "2021-12-10T07:36:23Z")

</div>

Hi @jon.zoom. Thanks, this is great news. I am looking forward to the new release.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 10, 2021, 7:01pm UTC](https://devforum.zoom.us/t/app-crashes-when-using-the-react-native-sdk-on-ios-without-video-permissions/61159/5 "2021-12-10T19:01:10Z")

</div>

No problem! FYI, this will be a fix for the iOS SDK and not the React Native wrapper, so it will be necessary to add the new version of the iOS SDK to the wrapper.

If you run into any additional issues, please don’t hesitate to reach back out in a new topic. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 6, 2022, 3:08pm UTC](https://devforum.zoom.us/t/app-crashes-when-using-the-react-native-sdk-on-ios-without-video-permissions/61159/6 "2022-01-06T15:08:27Z")

</div>

Closed on January 6, 2022, 3:08pm UTC

This topic was automatically closed after 30 days. New replies are no longer allowed.
