# Password for joining a meeting in sample app?

**URL:** <https://devforum.zoom.us/t/password-for-joining-a-meeting-in-sample-app/797>\
**Category:** iOS\
**Created:** [November 23, 2017, 10:41am UTC](https://devforum.zoom.us/t/password-for-joining-a-meeting-in-sample-app/797 "2017-11-23T10:41:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Izhar\_Laufer](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/izhar_laufer/32/1095_2.png) [@Izhar\_Laufer](https://devforum.zoom.us/u/Izhar_Laufer)\
**Post date:** [November 23, 2017, 10:41am UTC](https://devforum.zoom.us/t/password-for-joining-a-meeting-in-sample-app/797/1 "2017-11-23T10:41:26Z")

</div>

Hello,

I’m trying to clone some of the functionality in the sample app.

Why do the api requires password for joining a meeting?

When using the sample app, clicking on **join a meeting** I have two text boxes:

meeting number and password.

is it optional?

BTW, in sample app, the method:

_**- (void)joinMeeting:(NSString\*)meetingNo withPassword:(NSString\*)pwd**_

\_ **{** \_

_**&nbsp; &nbsp; if (![meetingNo length])**_

\_ **&nbsp; &nbsp; &nbsp; &nbsp; return;** \_

_**&nbsp; &nbsp; MobileRTCMeetingService \*ms = [[MobileRTC sharedRTC] getMeetingService];**_

_**&nbsp; &nbsp; if (ms)**_

\_ **&nbsp; &nbsp; {** \_

\_ **&nbsp; &nbsp; &nbsp; &nbsp; ms.delegate = self;** \_

\_ **&nbsp; &nbsp; &nbsp; &nbsp; //For Join a meeting with password** \_

\_ **&nbsp; &nbsp; &nbsp; &nbsp; NSDictionary \*paramDict = @{** \_

\_ **&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kMeetingParam\_Username:kSDKUserName,** \_

\_ **&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kMeetingParam\_MeetingNumber:meetingNo,** \_

\_ **&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kMeetingParam\_MeetingPassword:pwd,** \_

\_ **&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //kMeetingParam\_ParticipantID:@“111”** \_

\_ **&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };** \_

\_ **//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //For Join a meeting** \_

\_ **//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NSDictionary \*paramDict = @{** \_

\_ **//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kMeetingParam\_Username:kSDKUserName,** \_

\_ **//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kMeetingParam\_MeetingNumber:meetingNo,** \_

\_ **//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kMeetingParam\_MeetingPassword:pwd,** \_

\_ **//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //kMeetingParam\_ParticipantID:@“111”** \_

\_ **//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };** \_

_**&nbsp; &nbsp; &nbsp; &nbsp; MobileRTCMeetError ret = [ms joinMeetingWithDictionary:paramDict];**_\_ **&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;** \_

_**&nbsp; &nbsp; &nbsp; &nbsp; NSLog(@“onJoinaMeeting ret:%d”, ret);**_

\_ **&nbsp; &nbsp; }** \_

\_ **}** \_

The remark code seems to be the same as the code unmarked with password.

---

<div class="post-metadata">

**Author:** ![Izhar\_Laufer](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/izhar_laufer/32/1095_2.png) [@Izhar\_Laufer](https://devforum.zoom.us/u/Izhar_Laufer)\
**Post date:** [November 23, 2017, 2:00pm UTC](https://devforum.zoom.us/t/password-for-joining-a-meeting-in-sample-app/797/2 "2017-11-23T14:00:11Z")

</div>

Never mind… it’s not a primary param.

Thank u anyway!

Regards,

Shay

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 24, 2021, 8:56pm UTC](https://devforum.zoom.us/t/password-for-joining-a-meeting-in-sample-app/797/3 "2021-08-24T20:56:11Z")

</div>

Marking as solved.

-Tommy
