# Can't leave waiting for the host screen

**URL:** <https://devforum.zoom.us/t/cant-leave-waiting-for-the-host-screen/61478>\
**Category:** iOS\
**Created:** [December 15, 2021, 1:31pm UTC](https://devforum.zoom.us/t/cant-leave-waiting-for-the-host-screen/61478 "2021-12-15T13:31:25Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![kovyashevsb](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kovyashevsb/32/17092_2.png) [@kovyashevsb](https://devforum.zoom.us/u/kovyashevsb)\
**Post date:** [December 15, 2021, 1:31pm UTC](https://devforum.zoom.us/t/cant-leave-waiting-for-the-host-screen/61478/1 "2021-12-15T13:31:25Z")

</div>

**Description**  
Can’t press any button on custom waiting view controller (if custom ui disabled).  
onJBHWaitingWithCmd with .hide not calling (if custom ui enabled).  
If onJBHWaitingWithCmd not implemented (custom ui disabled):  
I dont know why default waiting host screen interaction disabled (“Leave” button dont work) in my work project. In sample project default waiting host screen interaction works (“Exit” button work, but why “Exit”, not “Leave”).

**Which iOS Meeting SDK version?**  
v5.7.6.1082, v5.7.1.645

Please fix this issue, can’t update sdk from v5.5.12511.0421.

**To Reproduce disabled user interaction**  
Steps to reproduce the behavior:

1. Set up sample project **without** root navigation controller and **without** custom UI
2. **Enable** - (void)onJBHWaitingWithCmd:(JBHCmd)cmd in SDKStartJoinMeetingPresenter+MeetingServiceDelegate
3. 
  1. Join to meeting with PMI (Personal Meeting ID)

4. Errors:

- onJBHWaitingWithCmd called twice with JBHCmd\_Show
- any user interactions disabled (can’t leave waiting room)

**Second case**  
Steps to reproduce the behavior:

1. Set up sample project **without** root navigation controller and **with** custom UI
2. **Enable** - (void)onJBHWaitingWithCmd:(JBHCmd)cmd in SDKStartJoinMeetingPresenter+MeetingServiceDelegate
3. 
  1. Join to meeting with PMI (Personal Meeting ID)

4. Errors:

- onJBHWaitingWithCmd not called when “Exit” waiting host screen

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

- Device: reproduced on simulator
- OS: reproduced on iOS 14.5 and iOS 15.0

**Notes**  
Also if DISABLE onJBHWaitingWithCmd in SDKStartJoinMeetingPresenter+MeetingServiceDelegate (in sample project without root navigation controller) it’s cause warning in logs:  
2021-12-15 15:40:56.459671+0400 MobileRTCSample[46442:773640] Unbalanced calls to begin/end appearance transitions for \<ZMRootNavigationController: 0x7f8c6302f600\>.  
2021-12-15 15:40:56.459911+0400 MobileRTCSample[46442:773640] [Presentation] Attempt to present \<ZMNavigationController: 0x7f8c64062400\> on \<ZMRootNavigationController: 0x7f8c6302f600\> (from \<ZMRootNavigationController: 0x7f8c6302f600\>) whose view is not in the window hierarchy.

---

<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 15, 2021, 10:30pm UTC](https://devforum.zoom.us/t/cant-leave-waiting-for-the-host-screen/61478/2 "2021-12-15T22:30:08Z")

</div>

Hi @kovyashevsb, thanks for the post.

Can you please provide a modified version of the sample app or a diff so that we can reproduce? Based on my testing, it seems to be working correctly, but perhaps I am misunderstanding the issue you are seeing.

Thanks!

---

<div class="post-metadata">

**Author:** ![kovyashevsb](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kovyashevsb/32/17092_2.png) [@kovyashevsb](https://devforum.zoom.us/u/kovyashevsb)\
**Post date:** [December 16, 2021, 8:20am UTC](https://devforum.zoom.us/t/cant-leave-waiting-for-the-host-screen/61478/3 "2021-12-16T08:20:38Z")

</div>

> [@jon.zoom](#):
>
> Can you please provide a modified version of the sample app or a diff so that we can reproduce? Based on my testing, it seems to be working correctly, but perhaps I am misunderstanding the issue you are seeing.

[https://drive.google.com/file/d/1evBhUh\_QqM7wbjhjv4f\_oMyXyrJH0oVk/view?usp=sharing](https://drive.google.com/file/d/1evBhUh_QqM7wbjhjv4f_oMyXyrJH0oVk/view?usp=sharing)

Also I fix this issue:

> I dont know why default waiting host screen interaction disabled (“Leave” button dont work) in my work project. In sample project default waiting host screen interaction works (“Exit” button work, but why “Exit”, not “Leave”).

But default waiting host screen navigation bar transparent

 ![Simulator Screen Shot - iPhone SE (2nd generation) - 2021-12-16 at 12.05.21](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/1/811fee7bc30596acfd1d55db7584c752910a1d5e.png)

---

<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 16, 2021, 8:14pm UTC](https://devforum.zoom.us/t/cant-leave-waiting-for-the-host-screen/61478/4 "2021-12-16T20:14:34Z")

</div>

Hi @kovyashevsb,

Just to confirm, am I understanding correctly that you have resolved the issues you were previously seeing but now are seeing a new issue with the default waiting UI?

Thanks!

---

<div class="post-metadata">

**Author:** ![kovyashevsb](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kovyashevsb/32/17092_2.png) [@kovyashevsb](https://devforum.zoom.us/u/kovyashevsb)\
**Post date:** [December 16, 2021, 8:37pm UTC](https://devforum.zoom.us/t/cant-leave-waiting-for-the-host-screen/61478/5 "2021-12-16T20:37:59Z")

</div>

I have the unresolved issue: no user interaction on custom host idle screen in case without root view controller, without custom UI, but with onJBHWaitingWithCmd implemented. This case easy to reproduce in provided sample app.

Also I can’t use the default host idle screen because it has a transparent navigation bar (in the screenshot).

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 18, 2021, 12:19am UTC](https://devforum.zoom.us/t/cant-leave-waiting-for-the-host-screen/61478/6 "2021-12-18T00:19:37Z")

</div>

Hi @kovyashevsb,

After testing the modified sample app you have provided, I am still unable to reproduce the behavior you’ve seen. In all scenarios the waiting UI is still fully visible and usable. Can you please double-check that the project you’ve provided has all of the changes required to reproduce?

Thanks!

---

<div class="post-metadata">

**Author:** ![kovyashevsb](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kovyashevsb/32/17092_2.png) [@kovyashevsb](https://devforum.zoom.us/u/kovyashevsb)\
**Post date:** [December 18, 2021, 9:28am UTC](https://devforum.zoom.us/t/cant-leave-waiting-for-the-host-screen/61478/7 "2021-12-18T09:28:16Z")

</div>

I downloaded the sample provided to you and checked it again.  
Also I made screen recordings:

1. With onJBHWaitingWithCmd method **disabled**

> **[Screen Recording 2021-12-18 at 13.16.22.mov (video)](https://drive.google.com/file/d/1Jmosn4IU4lep7rfoYNMN0oeJiD0aki4C/view?usp=sharing)**
>
> Google Drive file.

1. With onJBHWaitingWithCmd method **enabled**

> **[Screen Recording 2021-12-18 at 13.20.44.mov (video)](https://drive.google.com/file/d/14F_3RrFZG5psYgd8exk9ZV3jNuEBYI-b/view?usp=sharing)**
>
> Google Drive file.

---

<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 22, 2021, 12:19am UTC](https://devforum.zoom.us/t/cant-leave-waiting-for-the-host-screen/61478/8 "2021-12-22T00:19:56Z")

</div>

Hi @kovyashevsb,

Thanks for providing those recordings. We’ll investigate this and let you know as soon as we have any updates.

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:** [January 13, 2022, 12:32am UTC](https://devforum.zoom.us/t/cant-leave-waiting-for-the-host-screen/61478/9 "2022-01-13T00:32:18Z")

</div>

Hi @kovyashevsb,

We have identified a fix for this which will be included in the release next month.

Thanks!

---

<div class="post-metadata">

**Author:** ![kovyashevsb](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kovyashevsb/32/17092_2.png) [@kovyashevsb](https://devforum.zoom.us/u/kovyashevsb)\
**Post date:** [January 13, 2022, 1:03am UTC](https://devforum.zoom.us/t/cant-leave-waiting-for-the-host-screen/61478/10 "2022-01-13T01:03:53Z")

</div>

Thanks for your work!

---

<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:** [January 13, 2022, 4:56pm UTC](https://devforum.zoom.us/t/cant-leave-waiting-for-the-host-screen/61478/11 "2022-01-13T16:56:11Z")

</div>

You are very welcome! Feel free to reach out in a new topic with any additional questions. 🙂

---

<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:** [January 13, 2022, 4:56pm UTC](https://devforum.zoom.us/t/cant-leave-waiting-for-the-host-screen/61478/12 "2022-01-13T16:56:14Z")

</div>

Closed on January 13, 2022, 4:56pm UTC


