# Manually leave the meeting in case internet lost

**URL:** <https://devforum.zoom.us/t/manually-leave-the-meeting-in-case-internet-lost/53974>\
**Category:** iOS\
**Created:** [July 11, 2021, 3:25pm UTC](https://devforum.zoom.us/t/manually-leave-the-meeting-in-case-internet-lost/53974 "2021-07-11T15:25:37Z")\
**Posts on this page:** 4\
**Page:** 2

<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:** [July 26, 2021, 7:16pm UTC](https://devforum.zoom.us/t/manually-leave-the-meeting-in-case-internet-lost/53974/21 "2021-07-26T19:16:10Z")

</div>

Hey @zacob

> [@zacob](#):
>
> Is there anyway in Zoom SDK that allow we keep track the internet connection state? Or monitoring the meeting state is the only way to do that for now?

I do not believe the SDK itself can monitor for this beyond monitoring the meeting state. I would consider a third party or Apple library for accurately monitoring internet connection.

> [@zacob](#):
>
> I created a network monitoring to keep track the network state sequence (on/off). Every time the state changed from Off to On, i use **MobileRTCInviteHelper.sharedInstance().ongoingMeetingNumber** to check if there’s any ongoingMeetingNumber (may be leave command is called when internet is off) and my call window is dismissed before, then i will call **MobileRTC.shared().getMeetingService()?.leaveMeeting(with: .leave)**
> 
> To make sure Zoom refresh and make **joinMeeting** happens again, i locked my UI for awhile (1-2 seconds) with a progress loading after the leave command sent to Zoom (I am not sure if it’s necessary, since i think Zoom will take a little bit of time to execute the leave before get ready for the new joinMeeting).
> 
> And thank you for your great support @Michael_Condon

Awesome! I am glad you got it squared away, what a creative solution 🙂  
You are very welcome, feel free to reach out again if you have any other questions.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![zacob](https://avatars.discourse-cdn.com/v4/letter/z/e19b73/32.png) [@zacob](https://devforum.zoom.us/u/zacob)\
**Post date:** [July 27, 2021, 6:40pm UTC](https://devforum.zoom.us/t/manually-leave-the-meeting-in-case-internet-lost/53974/22 "2021-07-27T18:40:11Z")

</div>

Thank you @Michael_Condon for your help!

---

<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:** [July 27, 2021, 7:11pm UTC](https://devforum.zoom.us/t/manually-leave-the-meeting-in-case-internet-lost/53974/23 "2021-07-27T19:11:48Z")

</div>

You are very welcome 🙂

---

<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:** [August 27, 2021, 5:11am UTC](https://devforum.zoom.us/t/manually-leave-the-meeting-in-case-internet-lost/53974/24 "2021-08-27T05:11:57Z")

</div>

Closed on August 27, 2021, 5:11am UTC

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

[Previous page](https://devforum.zoom.us/t/manually-leave-the-meeting-in-case-internet-lost/53974.md?page=1)
