Description
When i try to join online meeting on iOS 13, and Zoom Framework pretends to open popup it app crashes due to, UIAlertView is deprecated and unavailable for UIScene based applications, please use UIAlertController!’
Here is the message: Terminating app due to uncaught exception ‘NSObjectNotAvailableException’, reason: 'UIAlertView is deprecated and unavailable for UIScene based applications, please use UIAlertController!'
Which version?
4.6.15805.0403
To Reproduce(If applicable)
Steps to reproduce the behavior:
try to join webinar while no network connection.
Smartphone (please complete the following information):
Thanks for using Zoom SDK and for the post. Are you using UIScene? Did you successfully initialized the SDK? And are you using the network to pass the SDK authentication and then disconnect from the network when trying to join a meeting/webinar? Because normally if you do not have network, you will receive an error in SDK authentication.
Everything working fine, until SDK need to show popup, you use UIAlertView which deprecated from iOS9, so the fix of this issue is to use UIAlertController instead of UIAlertView
Even though Apple has deprecated the UIAlertView, but it won’t directly cause crashes, so there might be some other issues that are causing this. We are still investigating this issue, once we are able to identify the root cause, we will fix it as soon as possible.
If you are facing this crashing issue, could you provide the .crash file and the SDK version so that we could further investigate?
Removing UIScene is not really a solution. Our iOS app targets iOS 13 and up and we would like to take advantage of UIScene. The Zoom SDK requires iOS 8 which is also when they deprecated UIAlertView introduced UIAlertController. I would expect the Zoom SDK to have made the update by now.
This is simply false as of iOS 13:
Even though Apple has deprecated the UIAlertView, but it won’t directly cause crashes, so there might be some other issues that are causing this. @carson.zoom
FatalError:
*** Terminating app due to uncaught exception 'NSObjectNotAvailableException', reason: 'UIAlertView is deprecated and unavailable for UIScene based applications, please use UIAlertController!'
Is there a way to override any function that may present an alert and handle it on our own? I noticed implementing onMeetingEndedReason(_ reason: MobileRTCMeetingEndReason) allowed me to handle meetingEnded on my own, but there are still other cases where the SDK decides it wants to present its own alert.
Thanks for using Zoom SDK. We have dependencies on supporting UIScene and other new features and these dependencies are out of the SDK team’s control. We are actively communicating with the teams that are working on the dependencies and hopefully we will be able to provide those support to everyone soon. I have forwarded your feedback to the engineering team and they will investigate the possibility of making more error/status to be able to handled by the developers.