# UIAlertView is deprecated

**URL:** <https://devforum.zoom.us/t/uialertview-is-deprecated/75590>\
**Category:** iOS\
**Created:** [September 8, 2022, 7:58am UTC](https://devforum.zoom.us/t/uialertview-is-deprecated/75590 "2022-09-08T07:58:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![emilrakh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emilrakh/32/40654_2.png) [@emilrakh](https://devforum.zoom.us/u/emilrakh)\
**Post date:** [September 8, 2022, 7:58am UTC](https://devforum.zoom.us/t/uialertview-is-deprecated/75590/1 "2022-09-08T07:58:28Z")

</div>

**Description**  
Hi, there. When I try to join an online meeting, the Zoom SDK opens an invisible pop-up window, which causes the application to crash with the error:  
`Thread 1: "UIAlertView is deprecated and unavailable for UIScene based applications, please use UIAlertController!"`

**Which iOS Video SDK version:**

- 1.3.2

**To Reproduce**  
I use AVFoundation to create audio and video sessions. Thus, a request for permission to use the camera and microphone is sent before connecting to the zoom session.

Steps to reproduce the behavior:

1. Refuse to grant access to the microphone
2. Connect to a zoom session
3. See error

If you grant access to the microphone and then join the zoom session, the error will not appear.  
Also, if you do not provide access to the camera device, no errors will appear.

**Smartphone:**

- Device: iPhone 13 Pro
- OS: iOS 15.6

**Additional context**  
The development is carried out using SwiftUI.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [September 9, 2022, 10:55pm UTC](https://devforum.zoom.us/t/uialertview-is-deprecated/75590/2 "2022-09-09T22:55:46Z")

</div>

Hi @emilrakh ,

Check out this thread for context on this error!

> [@App crash by using scene delegate](https://devforum.zoom.us/t/app-crash-by-using-scene-delegate/32844/2):
>
> Hey @Davidsports Thanks for using the dev forum! Unfortunately, the SDK does not support SceneDelegates currently. The SceneDelegate must be removed and disabled to be able to use the iOS native SDK. If you decide to go this route: Remove the SceneDelegate.m file and SceneDelegate.h file. Remove the UISceneSession code in AppDelegate. Add a UIWindow property to the AppDelegate. @property ( strong , nonatomic ) UIWindow \*window; Let me know if you have any other questions. Thanks! Mich…

Thanks,  
Gianni

---

<div class="post-metadata">

**Author:** ![emilrakh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emilrakh/32/40654_2.png) [@emilrakh](https://devforum.zoom.us/u/emilrakh)\
**Post date:** [September 13, 2022, 7:54am UTC](https://devforum.zoom.us/t/uialertview-is-deprecated/75590/3 "2022-09-13T07:54:23Z")

</div>

Thanks for the answer, but my project didn’t have SceneDelegate and UISceneSession code in AppDelegate before.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [September 13, 2022, 9:44pm UTC](https://devforum.zoom.us/t/uialertview-is-deprecated/75590/4 "2022-09-13T21:44:30Z")

</div>

Hi @emilrakh ,

I’ve learned from a colleague that this has been fixed. Please update to the latest SDK version as soon as you can.

Thank you,  
Gianni

---

<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:** [October 14, 2022, 7:44am UTC](https://devforum.zoom.us/t/uialertview-is-deprecated/75590/5 "2022-10-14T07:44:58Z")

</div>

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