# onJoinMeeting, response: 150

**URL:** <https://devforum.zoom.us/t/onjoinmeeting-response-150/4571>\
**Category:** iOS\
**Created:** [June 8, 2019, 3:24pm UTC](https://devforum.zoom.us/t/onjoinmeeting-response-150/4571 "2019-06-08T15:24:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tobiak](https://avatars.discourse-cdn.com/v4/letter/t/a3d4f5/32.png) [@Tobiak](https://devforum.zoom.us/u/Tobiak)\
**Post date:** [June 8, 2019, 3:24pm UTC](https://devforum.zoom.us/t/onjoinmeeting-response-150/4571/1 "2019-06-08T15:24:45Z")

</div>

**Description**  
This response is seen in console when I select the “Join Meeting” button.  
“onJoinMeeting, response: 150”

**Which version?**  
4.3.47201.0322

**To Reproduce(If applicable)**  
Run in simulator in xcode 10.

**Screenshots**  
Here is ViewController.m (didn’t name as MainController in my case)

 ![06%20PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/0/0185e735b394c189ad08750ea15e875095d94229.png)

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

**Additional context**  
I have provided these in AppDelegate:  
#define kSDKAppKey  
#define kSDKAppSecret  
#define kSDKDomain

Permissions have been created in info.plist as well.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 10, 2019, 6:27pm UTC](https://devforum.zoom.us/t/onjoinmeeting-response-150/4571/2 "2019-06-10T18:27:55Z")

</div>

Hi Tobiak,

Thanks for using Zoom SDK. The error code 150 means “Invalid Arguments”, the following 3 scenarios will trigger this error:

1. If the `paramDict` is null or not valid
2. If the meeting number is null or not valid(e.g: has length 0)
3. If the domain(kSDKDomain) is null or not valid(e.g: has length)

The code snippet looks good, but I would suggest checking the above 3 scenarios. For #3, if the SDK is not proper initialized, then the domain will be invalid and get this error.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![Tobiak](https://avatars.discourse-cdn.com/v4/letter/t/a3d4f5/32.png) [@Tobiak](https://devforum.zoom.us/u/Tobiak)\
**Post date:** [June 16, 2019, 5:17pm UTC](https://devforum.zoom.us/t/onjoinmeeting-response-150/4571/3 "2019-06-16T17:17:55Z")

</div>

Thanks, I had to initialize sdk this way;

[MobileRTC initializeWithDomain:kSDKDomain enableLog: **NO**];

in my AppDelegate.m and I can join a meeting now.

I like to collect individual user names and parse along with “meetingNo” to “NSDictionary \*paramDict” at the point of “joinMeeting”. I don’t want to use the static/literal specified as …#define kSDKUserName @“Superman” in MainviewController.h (for instance).

Any help or suggestion for this?

Thank you.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 17, 2019, 6:23pm UTC](https://devforum.zoom.us/t/onjoinmeeting-response-150/4571/4 "2019-06-17T18:23:09Z")

</div>

Hi,  
Thanks for the reply and glad to hear that the problem was resolved.

Regarding your follow up questions:

- The `#define kSDKUserName @"Superman"` and all other static values are for demo purpose. We do not recommend hardcode anything in your code as well. Please see our disclaimer on this(We also have this in our doc):[https://github.com/zoom/zoom-sdk-ios#disclaimer](https://github.com/zoom/zoom-sdk-ios#disclaimer)
- All parameters in the `NSDictionary *paramDict` are expecting `NSString*` values, thus as long as you pass the right data type values to the `paramDict`, the way of how you collects the values are pretty flexible. For example, you can ask the user to fill a form to collect the username and meeting number(like what we have in the demo) or you can get the data from you server, etc.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 6:28pm UTC](https://devforum.zoom.us/t/onjoinmeeting-response-150/4571/5 "2020-08-21T18:28:54Z")

</div>

Closed on August 21, 2020, 6:28pm UTC


