# Joining a session in iOS

**URL:** <https://devforum.zoom.us/t/joining-a-session-in-ios/106758>\
**Category:** Video SDK\
**Tags:** video-sdk\
**Created:** [March 28, 2024, 9:59pm UTC](https://devforum.zoom.us/t/joining-a-session-in-ios/106758 "2024-03-28T21:59:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![moscd3](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/moscd3/32/58070_2.png) [@moscd3](https://devforum.zoom.us/u/moscd3)\
**Post date:** [March 28, 2024, 9:59pm UTC](https://devforum.zoom.us/t/joining-a-session-in-ios/106758/1 "2024-03-28T21:59:30Z")

</div>

I am really frustrated trying to get the SDK to work properly. Formerly, we used Twilio in our telemedicine app with no issues. Now we are forced to move to Zoom and what we got a whole bunch of issues that after searching the forum here seems to be neglected or less taken care of.

My problem here is exactly same as the problem in this ticket

> [@Error ZoomVideoSDKError(rawValue: 2014) 5002 in iphone and iPad both](https://devforum.zoom.us/t/error-zoomvideosdkerror-rawvalue-2014-5002-in-iphone-and-ipad-both/96986):
>
> func joinSession() { let sessionContext = ZoomVideoSDKSessionContext() // Ensure that you do not hard code JWT or any other confidential credentials in your production app. sessionContext.token = "XXXXXXXX" sessionContext.sessionName = "testingdemo" sessionContext.userName = "nigel" sessionContext.sessionPassword = "Hello123" if let session = ZoomVideoSDK.shareInstance()?.joinSession(sessionContext) { session.getHostName() print("Session joined s…

The SDK worked for me only for couple of times, then Joining a session will ALWAYS fire leaving the session delegate function with Error codes different each time and yes all Zoom error codes that I faced so far as mysterious with no explanation even online

It also seems like the SDK works only once per new fresh account, then joining a session stops. with errors different each time. I created about 3 accounts so far and got the same behaviour

We need to either solve our problems or we will have to avoid Zoom as a solution
