# How to make meeting link open in sample app?

**URL:** <https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612>\
**Category:** macOS\
**Created:** [June 9, 2017, 3:22am UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612 "2017-06-09T03:22:50Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bert\_Leatherman](https://avatars.discourse-cdn.com/v4/letter/b/f04885/32.png) [@Bert\_Leatherman](https://devforum.zoom.us/u/Bert_Leatherman)\
**Post date:** [June 9, 2017, 3:22am UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/1 "2017-06-09T03:22:50Z")

</div>

Hi, I downloaded the sample app for Mac OS and would like to give it my own name and logo and then have meetings open in it when users click meeting links. I have set a custom URL scheme in Xcode (myurlscheme://). What would be the next steps to get meetings to open automatically in the sample app by users clicking links with my custom URL scheme in their browsers? I don’t want users to have to log in to the sample app; I just want it to launch automatically and connect automatically to a meeting when someone clicks a link with my custom URL scheme. Thanks.

---

<div class="post-metadata">

**Author:** ![Wei\_Guo1](https://avatars.discourse-cdn.com/v4/letter/w/ec9cab/32.png) [@Wei\_Guo1](https://devforum.zoom.us/u/Wei_Guo1)\
**Post date:** [June 9, 2017, 9:08pm UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/2 "2017-06-09T21:08:14Z")

</div>

Hi Bert,

Since you already defined your own URL shceme, I assume that now you can click the link and open the app, the next step for you is to fetch the meeting information in the URL. For example: meeting ID.

Best

Wei

&nbsp;

---

<div class="post-metadata">

**Author:** ![Bert\_Leatherman](https://avatars.discourse-cdn.com/v4/letter/b/f04885/32.png) [@Bert\_Leatherman](https://devforum.zoom.us/u/Bert_Leatherman)\
**Post date:** [June 9, 2017, 10:06pm UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/3 "2017-06-09T22:06:34Z")

</div>

Hi Wei, thanks a lot for the reply. I should have been more clear in my question. The sample app is hard-coded to access only a single meeting room (in this case, 7171717171):

&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;if ([authService isAuthorized])

&nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; meetingService.delegate = self;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ret =[meetingService joinMeeting:ZoomSDKUserType\_ZoomUser toke4enfrocelogin:nil webinarToken:nil&nbsp; participantId:@“10” meetingNumber:@“7171717171” displayName:@“TOTTI” password:@"" isDirectShare:NO sharedApp:0 isVideoOff:NO isAuidoOff:NO];

&nbsp; &nbsp; &nbsp; &nbsp; }

When I enter myurlscheme://zoom.us/j/1234567890 in my browser, the sample app opens (because I have modified it to recognize my URL scheme). however, no meeting begins. I need help figuring out how to modify the sample app code to that a meeting launches when&nbsp;myurlscheme://zoom.us/j/1234567890 is clicked.

Thanks,

Bert

---

<div class="post-metadata">

**Author:** ![Wei\_Guo1](https://avatars.discourse-cdn.com/v4/letter/w/ec9cab/32.png) [@Wei\_Guo1](https://devforum.zoom.us/u/Wei_Guo1)\
**Post date:** [June 9, 2017, 10:16pm UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/4 "2017-06-09T22:16:36Z")

</div>

Hi Bert,

in the example you provided:&nbsp;myurlscheme://zoom.us/j/1234567890, 1234567890 is the meeting ID that you need to fetch and pass to the joinMeeting functions, you can make a place holder for the meeting ID: (NSString\*)meeting ID. and replace meetingNumber:@“7171717171”.&nbsp;

You can do some research on how to fetch and store information in URL in Objective-c.

Best

---

<div class="post-metadata">

**Author:** ![Bert\_Leatherman](https://avatars.discourse-cdn.com/v4/letter/b/f04885/32.png) [@Bert\_Leatherman](https://devforum.zoom.us/u/Bert_Leatherman)\
**Post date:** [June 9, 2017, 10:35pm UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/5 "2017-06-09T22:35:58Z")

</div>

Thanks a lot Wei. After reading your message I changed

meetingNumber:@“7171717171”

to

meetingNumber:(NSString\*)meeting ID

but got a build error (“use of undeclared identifier ‘meeting’”) as in the attached screenshot. Is there something different I should do so that when people click&nbsp;myurlscheme://zoom.us/j/1234567890 the sample app launches meeting number 1234567890?

 ![](https://support.zoom.us/hc/user_images/8ow6m5sCK7bnYV7DCVT6ng.png)

---

<div class="post-metadata">

**Author:** ![Wei\_Guo1](https://avatars.discourse-cdn.com/v4/letter/w/ec9cab/32.png) [@Wei\_Guo1](https://devforum.zoom.us/u/Wei_Guo1)\
**Post date:** [June 9, 2017, 10:38pm UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/6 "2017-06-09T22:38:05Z")

</div>

Hi Bert,

you have to declare the meeting ID as a string object first, then you still need to figure out by yourself about how to get the id(1234567890) from the URL. Zoom iOS SDK won’t do that for you.

Best

&nbsp;

---

<div class="post-metadata">

**Author:** ![Bert\_Leatherman](https://avatars.discourse-cdn.com/v4/letter/b/f04885/32.png) [@Bert\_Leatherman](https://devforum.zoom.us/u/Bert_Leatherman)\
**Post date:** [June 9, 2017, 10:45pm UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/7 "2017-06-09T22:45:59Z")

</div>

got it, thanks. i’ll research how to get the meeting id from the URL. in the meantime, is it possible to change the sample app to allow a user to input a meeting ID manually? something like:

meetingNumber:(NSString\*)whatever-the-user-entered

could you point me in the right direction to get started trying with that? thanks

---

<div class="post-metadata">

**Author:** ![Bert\_Leatherman](https://avatars.discourse-cdn.com/v4/letter/b/f04885/32.png) [@Bert\_Leatherman](https://devforum.zoom.us/u/Bert_Leatherman)\
**Post date:** [June 9, 2017, 10:47pm UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/8 "2017-06-09T22:47:12Z")

</div>

and can you give me a few tips on where to look/what to read to get the meeting id from the URL to use it as a string object? i’m learning as a i go. thanks

---

<div class="post-metadata">

**Author:** ![Wei\_Guo1](https://avatars.discourse-cdn.com/v4/letter/w/ec9cab/32.png) [@Wei\_Guo1](https://devforum.zoom.us/u/Wei_Guo1)\
**Post date:** [June 9, 2017, 10:49pm UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/9 "2017-06-09T22:49:51Z")

</div>

Hi Bert,

the sample provided by Zoom has sample about how to create a place holder and let user input, then get the user input value, please take a look.

for fetch string from URL, please take a look @&nbsp;[https://stackoverflow.com/questions/17839058/objective-c-get-string-from-url](https://stackoverflow.com/questions/17839058/objective-c-get-string-from-url)

Best

---

<div class="post-metadata">

**Author:** ![Bert\_Leatherman](https://avatars.discourse-cdn.com/v4/letter/b/f04885/32.png) [@Bert\_Leatherman](https://devforum.zoom.us/u/Bert_Leatherman)\
**Post date:** [June 9, 2017, 11:13pm UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/10 "2017-06-09T23:13:35Z")

</div>

Thanks Wei. When you said, “The sample provided by Zoom has sample about how to create a place holder and let user input, then get the user input value, please take a look,” where did you mean to look?

I’ll look at that link you sent about getting strings from URLs. Thanks for the tip.

---

<div class="post-metadata">

**Author:** ![Wei\_Guo1](https://avatars.discourse-cdn.com/v4/letter/w/ec9cab/32.png) [@Wei\_Guo1](https://devforum.zoom.us/u/Wei_Guo1)\
**Post date:** [June 9, 2017, 11:16pm UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/11 "2017-06-09T23:16:46Z")

</div>

Hi Bert,

for example, after you pass the authentication, you can click on H323 and you will see:

 ![](https://support.zoom.us/hc/user_images/6TL3IYU3OgmNumhgOffGZA.png)

you can take a look at how do we get the pair code and meeting number from the user input.

Best

---

<div class="post-metadata">

**Author:** ![Bert\_Leatherman](https://avatars.discourse-cdn.com/v4/letter/b/f04885/32.png) [@Bert\_Leatherman](https://devforum.zoom.us/u/Bert_Leatherman)\
**Post date:** [June 26, 2017, 2:15am UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/12 "2017-06-26T02:15:00Z")

</div>

Hi Wei, I read the link you sent but it didn’t really help me make any progress on getting the ID string from a URL. Could you help me figure out what code I need to insert in the Zoom sample app to make that work? Thanks.

---

<div class="post-metadata">

**Author:** ![Wei\_Guo1](https://avatars.discourse-cdn.com/v4/letter/w/ec9cab/32.png) [@Wei\_Guo1](https://devforum.zoom.us/u/Wei_Guo1)\
**Post date:** [June 26, 2017, 4:51pm UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/13 "2017-06-26T16:51:24Z")

</div>

Hi Bert,

please consider the URL as a string too. The problem here for you is to get a sub-string from a string object. That’s a programming issue and please do some research on it.&nbsp;

Best

&nbsp;

---

<div class="post-metadata">

**Author:** ![Frank\_Viggiano](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@Frank\_Viggiano](https://devforum.zoom.us/u/Frank_Viggiano)\
**Post date:** [June 26, 2017, 5:28pm UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/14 "2017-06-26T17:28:58Z")

</div>

Agree with [Wei@Zoom](mailto:Wei@Zoom). This should be pretty straightforward if you are&nbsp;an obj-C developer.&nbsp;

If the URL is&nbsp;myurlscheme://zoom.us/j/1234567890

check out the pathComponent property [https://developer.apple.com/documentation/foundation/nsurl#//apple\_ref/occ/instp/NSURL/pathComponents](https://developer.apple.com/documentation/foundation/nsurl#//apple_ref/occ/instp/NSURL/pathComponents)

```
NSURL *myUrl = [NSURL URLWithString:@"myurlscheme://zoom.us/j/1234567890"];NSString *lastPathComponent = [myUrl lastPathComponent];

```

This should give you the meeting id.&nbsp;

---

<div class="post-metadata">

**Author:** ![Bert\_Leatherman](https://avatars.discourse-cdn.com/v4/letter/b/f04885/32.png) [@Bert\_Leatherman](https://devforum.zoom.us/u/Bert_Leatherman)\
**Post date:** [July 4, 2017, 6:30pm UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/15 "2017-07-04T18:30:17Z")

</div>

Thanks Frank. I actually don’t want to hard-code any particular meeting ID in the sample app. Rather, I just want the sample app to automatically open a conference based on the meeting ID in the URL when a link is clicked. Any idea how to do that? Thanks.

---

<div class="post-metadata">

**Author:** ![Frank\_Viggiano](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@Frank\_Viggiano](https://devforum.zoom.us/u/Frank_Viggiano)\
**Post date:** [July 5, 2017, 5:05pm UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/16 "2017-07-05T17:05:19Z")

</div>

why do you have to hard code anything ? Zoom meeting URL is just an URL and my 2 line code&nbsp;showed you how to get the last part of the URL which is a meeting id.&nbsp;

&nbsp;

---

<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:50pm UTC](https://devforum.zoom.us/t/how-to-make-meeting-link-open-in-sample-app/612/17 "2021-08-24T20:50:27Z")

</div>

Marking as solved.

-Tommy
