# How to leave Breakout Room

**URL:** <https://devforum.zoom.us/t/how-to-leave-breakout-room/56261>\
**Category:** iOS\
**Created:** [August 23, 2021, 9:21am UTC](https://devforum.zoom.us/t/how-to-leave-breakout-room/56261 "2021-08-23T09:21:01Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [August 23, 2021, 9:21am UTC](https://devforum.zoom.us/t/how-to-leave-breakout-room/56261/1 "2021-08-23T09:21:02Z")

</div>

**Description**  
I would like to know how to get people to leave the Breakout room.  
Currently, I have created a BreakoutRoom with a transition from one View to another.  
In the desktop application, I created a breakout room and assigned an App user to it. The following code transitions to the breakout room of another View.

```auto
func onHasAttendeeRightsNotification(_ attendee: MobileRTCBOAttendee) {
        self.attendee = attendee
        attendee.joinBO()
        
        let breakoutUIVC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "BreakoutUIView") as? BreakoutUIViewController
        breakoutUIVC!.modalPresentationStyle = .fullScreen
        self.present(breakoutUIVC!, animated: false, completion: nil)
    }

```

But I can’t get out of BreakoutRoom, so I put the following code in the breakout side View.

```auto
let customMeetingUIVC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "CustomeUIView") as? CustomeUIViewController
        let attendee = MobileRTC.shared().getMeetingService()?.getAttedeeHelper()
        attendee!.leaveBO()
        customMeetingUIVC!.modalPresentationStyle = .fullScreen
        self.dismiss(animated: true, completion: nil)
        self.present(customMeetingUIVC!, animated: false, completion: nil)

```

This will temporarily return you to the original screen, and you can see from the desktop app that you have exited the BreakoutRoom, but you will soon be automatically back in the BreakoutRoom.

Please tell me a better way.  
Thanks.

**Which iOS Meeting SDK version?**  
Using CustomUI.  
ZoomSDK version 5.7.1.644.  
ZoomDesktop 5.7.5(Windows)

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [August 23, 2021, 11:02pm UTC](https://devforum.zoom.us/t/how-to-leave-breakout-room/56261/2 "2021-08-23T23:02:42Z")

</div>

Hey @KAZUMA87,

Thanks for using the dev forum!

What is the return value after you call leaveBO()?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [August 24, 2021, 1:27am UTC](https://devforum.zoom.us/t/how-to-leave-breakout-room/56261/3 "2021-08-24T01:27:10Z")

</div>

Hello , @Michael_Condon,

Calling leaveBO returns value “true”.

Thanks.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [August 24, 2021, 7:39pm UTC](https://devforum.zoom.us/t/how-to-leave-breakout-room/56261/4 "2021-08-24T19:39:26Z")

</div>

Hey @KAZUMA87,

And after it returns true, the user remains in the breakout room?

Michael

---

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [August 25, 2021, 4:11am UTC](https://devforum.zoom.us/t/how-to-leave-breakout-room/56261/5 "2021-08-25T04:11:53Z")

</div>

Hello @Michael_Condon ,

Thank you for your reply.

After the return of “true”, the program exits the breakout room, but does not return again.  
onHasAttendeeRightsNotification works and enters the breakout room again.

I’m running the following steps

1. Start the meeting in the desktop application.

2. Join the meeting with the app

3. Create a breakout room on the desktop and assign the app user to the breakout room

4. onHasAttendeeRightsNotification works in the app, and attendee.joinBO() joins the breakout room

5. In app

```auto
let attendee = MobileRTC.shared().getMeetingService()? .getAttedeeHelper()
let leavereturn = attendee!.leaveBO()

```

Leave the breakout room at  
The variable “leavereturn” will be set to true.

1. In the desktop app, you can see that you have left the room, and in fact, you have left the room (you are not attending).
2. onHasAttendeeRightsNotification works even if I don’t do anything on desktop or app, and I join the breakout room again with attendee.joinBO()

I can’t figure out the point where onHasAttendeeRightsNotification works again as in this step 7.

Do you have any solution or advice?

Thanks.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [August 26, 2021, 9:04pm UTC](https://devforum.zoom.us/t/how-to-leave-breakout-room/56261/6 "2021-08-26T21:04:58Z")

</div>

Hey @KAZUMA87,

By

> [@KAZUMA87](#):
>
> onHasAttendeeRightsNotification works again

Do you mean that the callback fires a second time?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [August 27, 2021, 1:35am UTC](https://devforum.zoom.us/t/how-to-leave-breakout-room/56261/7 "2021-08-27T01:35:02Z")

</div>

Hello @Michael_Condon ,

That’s right, use leaveBO() and come back from BO, onHasAttendeeRightsNotification will be called again.

Thanks.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [August 27, 2021, 7:29pm UTC](https://devforum.zoom.us/t/how-to-leave-breakout-room/56261/8 "2021-08-27T19:29:02Z")

</div>

Hey @KAZUMA87,

I see. Am investigating now. Stay tuned.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [August 27, 2021, 7:32pm UTC](https://devforum.zoom.us/t/how-to-leave-breakout-room/56261/9 "2021-08-27T19:32:47Z")

</div>

Hey @KAZUMA87,

I was able to reproduce this behavior. Submitting a bug report for this.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [August 30, 2021, 5:53am UTC](https://devforum.zoom.us/t/how-to-leave-breakout-room/56261/10 "2021-08-30T05:53:20Z")

</div>

Hello @Michael_Condon,

Thanks for the confirmation.  
I hope the bug will be fixed.

Thanks.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [August 30, 2021, 7:16pm UTC](https://devforum.zoom.us/t/how-to-leave-breakout-room/56261/11 "2021-08-30T19:16:33Z")

</div>

Hey @KAZUMA87,

You are welcome! 🙂

I will keep you posted about this.

Michael

---

<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:** [September 30, 2021, 5:17am UTC](https://devforum.zoom.us/t/how-to-leave-breakout-room/56261/12 "2021-09-30T05:17:00Z")

</div>

Closed on September 30, 2021, 5:17am UTC

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