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
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
- Fresh app installation
- Go to a screen that uses the ZoomVideoSdkProvider
- Accept the audio permission dialog
- Deny the video permission dialog
- Attempt to join a session
- 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.