# Cannot hide registration dialog when joining webinar via iOS SDK

**URL:** <https://devforum.zoom.us/t/cannot-hide-registration-dialog-when-joining-webinar-via-ios-sdk/4933>\
**Category:** iOS\
**Created:** [July 8, 2019, 10:52pm UTC](https://devforum.zoom.us/t/cannot-hide-registration-dialog-when-joining-webinar-via-ios-sdk/4933 "2019-07-08T22:52:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex1](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@alex1](https://devforum.zoom.us/u/alex1)\
**Post date:** [July 8, 2019, 10:52pm UTC](https://devforum.zoom.us/t/cannot-hide-registration-dialog-when-joining-webinar-via-ios-sdk/4933/1 "2019-07-08T22:52:59Z")

</div>

We are developing a custom iOS app atop the Zoom platform and have run into an issue hiding the registration dialog when a user attempts to join a webinar. The webinar is created with approval\_type set to 2 (registration not required) as this was suggested method to hide the prompt. We can confirm that approval type is set to 2 in the created webinar on Zoom’s dashboard but the registration prompt continues to show.

We’re at a loss as to where else to look to hide this prompt. Please help.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![bdeanindy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bdeanindy/32/154_2.png) [@bdeanindy](https://devforum.zoom.us/u/bdeanindy)\
**Post date:** [July 9, 2019, 8:04pm UTC](https://devforum.zoom.us/t/cannot-hide-registration-dialog-when-joining-webinar-via-ios-sdk/4933/2 "2019-07-09T20:04:49Z")

</div>

> [@alex1](#):
>
> e

Hey @alex1 welcome to the Zoom developer community.

Are you using the iOS SDK? If yes, could you change the topic to the SDK please?

If not, I assume you’re using the [Create Webinar REST API](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarcreate) to create the webinar and I see the property `approval_type` you’re referring to with value “2” indicating registration not required.

To be certain I understand all the parameters, could you provide the specific POST request complete with headers (just omit any tokens or PII please) so I can try to recreate this issue and diagnose the problem?

---

<div class="post-metadata">

**Author:** ![alex1](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@alex1](https://devforum.zoom.us/u/alex1)\
**Post date:** [July 10, 2019, 11:58am UTC](https://devforum.zoom.us/t/cannot-hide-registration-dialog-when-joining-webinar-via-ios-sdk/4933/4 "2019-07-10T11:58:52Z")

</div>

Hi @bdeanindy.

Thanks for getting back to me.

We’re using the iOS SDK on the client side which is a cordova app. When we’re ready to start a webinar our client pings our backend where we create a new webinar using the REST API. The request might have the following header and body.

POST /v2/users/username@domain.com/webinars  
HTTP/1.1  
Host: [api.zoom.us](http://api.zoom.us)  
Accept: _/_  
Content-Type: application/json  
Authorization: Bearer **REMOVED\_FOR\_SECURITY**  
Content-Length: 568

{  
“topic”: “Lorem Ipsum”,  
“settings”: {  
“host\_video”: true,  
“hd\_video”: true,  
“approval\_type”: 2,  
“audio”: “voip”,  
“auto\_recording”: “cloud”,  
“enforce\_login”: false,  
“allow\_multiple\_devices”: false,  
“show\_share\_button”: false,  
“registrants\_confirmation\_email”: false,  
“contact\_name”: “ABC”,  
“contact\_email”: "ABC@ABC.com"  
},  
“api\_key”: “[API KEY]”,  
“api\_secret”: “[API SECRET]”,  
“data\_type”: “JSON”  
}

We get the meeting ID from the API response and send that back to the client.

If the user has rights to start the meeting we also send them a ZAK to append to our call to startMeetingWithStartParam using the SDK.

Users join the webinar using the SDK’s joinMeetingWithDictionary where we provide the meeting number and their userId and userName from our system.

Let me know if you need anything else to help us troubleshoot the issue.

---

<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:** [July 11, 2019, 6:40pm UTC](https://devforum.zoom.us/t/cannot-hide-registration-dialog-when-joining-webinar-via-ios-sdk/4933/5 "2019-07-11T18:40:25Z")

</div>

Hi Alex,

Thanks for using Zoom SDK.

I just tested your use cases with our demo app(I scheduled the webinar on [zoom.us](http://zoom.us), not from Zoom API) and unfortunately I am not able to reproduce this issue. If the webinar registration is correctly set to “no registration required”, then the prompt is not popping up on the SDK.

However, even with “no registration required”, you still need to pass the username and email info by implementing the following method:  
([https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/SDKPresenters/how\_to\_use\_inmeeting\_function/meeting\_callback/SDKStartJoinMeetingPresenter%2BMeetingServiceDelegate.m#L45](https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/SDKPresenters/how_to_use_inmeeting_function/meeting_callback/SDKStartJoinMeetingPresenter%2BMeetingServiceDelegate.m#L45))

```auto
- (void)onSinkJoinWebinarNeedUserNameAndEmailWithCompletion:(BOOL (^_Nonnull)(NSString * _Nonnull username, NSString * _Nonnull email, BOOL cancel))completion
{
    if (completion)
    {
        NSString * username = [NSString stringWithString:@"username"];
        NSString * email = [NSString stringWithString:@"email here"];
        BOOL ret = completion(username,email,NO);
        NSLog(@"%zd",ret);
    }
}

```

Are you using our Ionic SDK on iOS or are you using iOS SDK in the Ionic wrapper you wrote?

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![alex1](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@alex1](https://devforum.zoom.us/u/alex1)\
**Post date:** [July 13, 2019, 8:08pm UTC](https://devforum.zoom.us/t/cannot-hide-registration-dialog-when-joining-webinar-via-ios-sdk/4933/6 "2019-07-13T20:08:14Z")

</div>

Thank you @carson.zoom. Pointing me to the SDK and the missing method did the trick. The registration prompt is no longer coming up.

---

<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:** [July 15, 2019, 5:21pm UTC](https://devforum.zoom.us/t/cannot-hide-registration-dialog-when-joining-webinar-via-ios-sdk/4933/7 "2019-07-15T17:21:19Z")

</div>

Hi Alex,

Glad to hear that the problem has solved. Please feel free to let us know if you have any other questions. Happy Zooming! 🙂

---

<div class="post-metadata">

**Author:** ![bdeanindy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bdeanindy/32/154_2.png) [@bdeanindy](https://devforum.zoom.us/u/bdeanindy)\
**Post date:** [July 15, 2019, 6:55pm UTC](https://devforum.zoom.us/t/cannot-hide-registration-dialog-when-joining-webinar-via-ios-sdk/4933/9 "2019-07-15T18:55:23Z")

</div>

Closed on July 15, 2019, 6:55pm UTC


