Hey @zacob
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
1 Like
zacob
(Zacob)
July 27, 2021, 6:40pm
22
Thank you @Michael_Condon for your help!
1 Like
system
(system)
Closed
August 27, 2021, 5:11am
24
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.