# Not able to join session in Video SDK v1.1.0

**URL:** <https://devforum.zoom.us/t/not-able-to-join-session-in-video-sdk-v1-1-0/53562>\
**Category:** iOS\
**Created:** [July 4, 2021, 11:00am UTC](https://devforum.zoom.us/t/not-able-to-join-session-in-video-sdk-v1-1-0/53562 "2021-07-04T11:00:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Surendhar95](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/surendhar95/32/17849_2.png) [@Surendhar95](https://devforum.zoom.us/u/Surendhar95)\
**Post date:** [July 4, 2021, 11:00am UTC](https://devforum.zoom.us/t/not-able-to-join-session-in-video-sdk-v1-1-0/53562/1 "2021-07-04T11:00:55Z")

</div>

**Description**  
I have a custom zoom call integration in swift. I’m trying to join a session by calling `joinSession()` the returned value is not `nil` but the client is not joining the session. I know this because the `ZoomVideoSDKDelegate`'s callback - `onSessionJoin()` is not getting invoked. Also I have a web implementation with the same topic and I don’t get any event for `user-added` callback over there.

Not sure what is going wrong here.

**Which iOS Video SDK version?**  
v1.1.0

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Go to ‘Download Video SDK for iOS v1.1.0’
2. Setup the SDK in your app
3. Initialize the SDK
4. Join session:

```auto
  let sessionContext = ZoomVideoSDKSessionContext()
    sessionContext.token = token
    sessionContext.sessionName = name
    sessionContext.userName = userName
    let session = ZoomVideoSDK.shareInstance()?.joinSession(sessionContext)
    if session != nil {
      print("Joined seession")
    } else {
      print("Error in joining session")
    }
.
.
.
  func onSessionJoin() {
    print("onSession join triggered")
  }

```

“Joined seession” prints successfully but “onSession join triggered” is not printed

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

- Device: iPhone 11
- OS: iOS 14.5

**Additional context**  
This is my payload to generate the JWT token:

```auto
{
   "app_key": "######",
   "iat": 1625395547,
   "exp": 1625481947,
   "tpc": "Test",
   "version": 1,
   "user_identity": "user123"
}

```

---

<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 7, 2021, 5:14pm UTC](https://devforum.zoom.us/t/not-able-to-join-session-in-video-sdk-v1-1-0/53562/2 "2021-07-07T17:14:27Z")

</div>

Hey @Surendhar95,

Thanks for using the dev forum!

Can you also implement the onError delegate function and let me know what that returns after attempting to join a session?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![Surendhar95](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/surendhar95/32/17849_2.png) [@Surendhar95](https://devforum.zoom.us/u/Surendhar95)\
**Post date:** [July 8, 2021, 6:32am UTC](https://devforum.zoom.us/t/not-able-to-join-session-in-video-sdk-v1-1-0/53562/3 "2021-07-08T06:32:52Z")

</div>

Hey @Michael_Condon

Thanks for reverting back.

I have implemented the onError callback like this:

```auto
func onError(_ ErrorType: ZoomVideoSDKERROR, detail details: Int) {
    switch ErrorType {
      case .Errors_Success:
      print("Success")
      default:
      print("Error \(ErrorType) \(details)")
      return
    }
  }

```

The callback was never called when I attempted to join the session.

---

<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 8, 2021, 4:40pm UTC](https://devforum.zoom.us/t/not-able-to-join-session-in-video-sdk-v1-1-0/53562/4 "2021-07-08T16:40:34Z")

</div>

Hey @Surendhar95,

Is the value in the “tpc” field of your JWT payload the same as the sessionName?  
Are you initializing the SDK first?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![Surendhar95](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/surendhar95/32/17849_2.png) [@Surendhar95](https://devforum.zoom.us/u/Surendhar95)\
**Post date:** [July 9, 2021, 8:55am UTC](https://devforum.zoom.us/t/not-able-to-join-session-in-video-sdk-v1-1-0/53562/5 "2021-07-09T08:55:47Z")

</div>

Hey @Michael_Condon

Yeah the value of the sessionName and the “tpc” key in the payload is the same.  
And yeah I’m initializing the SDK before attempting to join the session. I’m calling joinSession in the success block after SDK initialization.

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:** [July 9, 2021, 5:28pm UTC](https://devforum.zoom.us/t/not-able-to-join-session-in-video-sdk-v1-1-0/53562/6 "2021-07-09T17:28:14Z")

</div>

Hmm interesting. Can you reproduce one more time and send your logs to [developersupport@zoom.us](mailto:developersupport@zoom.us)? Please provide a link to this post in your email. To obtain the logs, follow the instructions at the bottom of this page: [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/sdk-initialization](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/sdk-initialization). The instructions are technically for the Client SDK but are the same for the video SDK.

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:** [July 15, 2021, 8:26pm UTC](https://devforum.zoom.us/t/not-able-to-join-session-in-video-sdk-v1-1-0/53562/7 "2021-07-15T20:26:48Z")

</div>

Hey @Surendhar95,

Can you try recreating a JWT following the instructions here: [https://devsupport.zoom.us/hc/en-us/articles/360059893552-How-to-create-a-sample-JWT-for-the-Client-SDK](https://devsupport.zoom.us/hc/en-us/articles/360059893552-How-to-create-a-sample-JWT-for-the-Client-SDK). When it is time to past in the payload, please use the one here: [https://marketplace.zoom.us/docs/sdk/video/auth](https://marketplace.zoom.us/docs/sdk/video/auth)

I am suspecting that somehow the JWT generation is failing.

Thanks!  
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:** [August 15, 2021, 6:27am UTC](https://devforum.zoom.us/t/not-able-to-join-session-in-video-sdk-v1-1-0/53562/8 "2021-08-15T06:27:01Z")

</div>

Closed on August 15, 2021, 6:27am UTC

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