# MobileRTCAuthService not responding

**URL:** <https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787>\
**Category:** iOS\
**Created:** [November 20, 2017, 12:40pm UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787 "2017-11-20T12:40:09Z")\
**Posts on this page:** 18\
**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 20, 2017, 12:40pm UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/1 "2017-11-20T12:40:09Z")

</div>

Hi, we have an Ionic/cordova app for ios.

we are using Zoom for meetings in our websites, while one of the website has the functionality to create meeting. And now we are trying to implement zoom functionality only for joining meetings in our app.

To implement it we need to create a plugin to integrate with angular.

**For the record, I’m not an ios programmer.**

When I call **[authService&nbsp;sdkAuth]**

with empty&nbsp; **clientKey** and&nbsp; **clientSecret** the callback function&nbsp; **onMobileRTCAuthReturn** getting called while the returnValue is error. (a good sign)

The problem I have is that when i’m calling&nbsp;**[authService sdkAuth]** while my&nbsp;

**clientKey** and&nbsp; **clientSecret** are initiated with real values, the callback function&nbsp;

**onMobileRTCAuthReturn** not getting executed.

Any ideas what should i do?

Do you know about any zoom cordova plugin that might exist somewhere?

---

<div class="post-metadata">

**Author:** ![Robust\_Hu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/robust_hu/32/59_2.png) [@Robust\_Hu](https://devforum.zoom.us/u/Robust_Hu)\
**Post date:** [November 21, 2017, 1:14am UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/2 "2017-11-21T01:14:11Z")

</div>

Have you set the domain before calling “sdkAuth”? BTW, suggest that you refer to our MobileRTCSample, which will make you understand clearly our iOS mobileRTC how to work.

Regards,

Robust

---

<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 21, 2017, 3:37pm UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/3 "2017-11-21T15:37:13Z")

</div>

I’ve set the domain, same problem.

Also, downloaded the sample app that works fine with our zoom parameters.

I think that I’m skipping some phase.

my code looks something like this:

**_if (authService){_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; authService.delegate = self;_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [authService logoutRTC];_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; authService.clientKey = MyKey;_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; authService.clientSecret = MyClientSecret;_**

**_&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [authService sdkAuth];_**

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

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

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

Am I missing something between the sdkAuth and&nbsp;\_MobileRTCMeetingService&nbsp;\_initialization?

---

<div class="post-metadata">

**Author:** ![Robust\_Hu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/robust_hu/32/59_2.png) [@Robust\_Hu](https://devforum.zoom.us/u/Robust_Hu)\
**Post date:** [November 22, 2017, 2:30am UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/4 "2017-11-22T02:30:20Z")

</div>

Have you&nbsp;met&nbsp;this issue with our MobileRTCSample? You can&nbsp;try this case in sample project at first, I think that it will make you understand how MobileRTC to work easier.

Thanks,

Robust

---

<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 22, 2017, 8:05am UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/5 "2017-11-22T08:05:30Z")

</div>

Yes I did.

the sample works fine without changing anything.

But when I add the method&nbsp;_**(void)sdkAuth**_ in&nbsp; **_AppDelegate.m_**

&nbsp;the lines&nbsp; in bold:

&nbsp;

_- (void)sdkAuth_

_{_

_&nbsp;&nbsp; &nbsp;_

_&nbsp; &nbsp; MobileRTCAuthService \*authService = [[MobileRTC sharedRTC] getAuthService];_

_&nbsp; &nbsp; if (authService)_

_&nbsp; &nbsp; {_

_&nbsp; &nbsp; &nbsp; &nbsp; authService.delegate = self;_

_&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;_

_&nbsp; &nbsp; &nbsp; &nbsp; [authService logoutRTC];_

_&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;_

_&nbsp; &nbsp; &nbsp; &nbsp; authService.clientKey = @“clientKey”;_

_&nbsp; &nbsp; &nbsp; &nbsp; authService.clientSecret = @“clientSecret”;_

_&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;_

_&nbsp; &nbsp; &nbsp; &nbsp; [authService sdkAuth];_

**_&nbsp; &nbsp; &nbsp; &nbsp; // Trying to initiate&nbsp;MobileRTCMeetingService right after authentication._**

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

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

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

_&nbsp; &nbsp; }_

_}_

the ms will be nil, and I think it’s because I have to wait for the callback method&nbsp; **onMobileRTCAuthReturn** to&nbsp;be executed and that the&nbsp; **returnValue** will be&nbsp; **MobileRTCAuthError\_Success**.

the original code works fine because the initiating of&nbsp; **_MobileRTCMeetingService_** is executed after

pressing **Join a Meeting** button.

Am i correct?

If so, how do the sample app achieve this “waiting” in the original code?&nbsp;

Thank you very much!!

Shay

---

<div class="post-metadata">

**Author:** ![Robust\_Hu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/robust_hu/32/59_2.png) [@Robust\_Hu](https://devforum.zoom.us/u/Robust_Hu)\
**Post date:** [November 23, 2017, 1:07am UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/6 "2017-11-23T01:07:35Z")

</div>

You cannot get the instance of meeting service before SDK auth successfully. Our mobileRTC just can be useful after SDK auth successfully.

---

<div class="post-metadata">

**Author:** ![Robust\_Hu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/robust_hu/32/59_2.png) [@Robust\_Hu](https://devforum.zoom.us/u/Robust_Hu)\
**Post date:** [November 23, 2017, 1:10am UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/7 "2017-11-23T01:10:03Z")

</div>

What I mean is that you just can get instance of meeting service after you received callback method "

- (void)onMobileRTCAuthReturn:(MobileRTCAuthError)returnValue

"

---

<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, 7:49am UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/8 "2017-11-23T07:49:28Z")

</div>

Thanks, my problem was that i used a background thread what caused the callback not to execute. Don’t really know why but now it works.

Thank u very much!!

Regards,

shay

---

<div class="post-metadata">

**Author:** ![Robust\_Hu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/robust_hu/32/59_2.png) [@Robust\_Hu](https://devforum.zoom.us/u/Robust_Hu)\
**Post date:** [November 23, 2017, 7:55am UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/9 "2017-11-23T07:55:31Z")

</div>

Sorry， MobileRTC does not support to handle callback functions in another thread except main thread.

---

<div class="post-metadata">

**Author:** ![operea](https://avatars.discourse-cdn.com/v4/letter/o/9fc348/32.png) [@operea](https://devforum.zoom.us/u/operea)\
**Post date:** [October 22, 2019, 11:14pm UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/10 "2019-10-22T23:14:48Z")

</div>

Hi, i have the same problem with iOS swift implementation, @Izhar_Laufer how do you solve the problem?, auth function and delegate are in appDelegate.swift so, any ideas why is not running at didFinishLaunchingWithOptions?

---

<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:** [October 23, 2019, 5:42am UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/11 "2019-10-23T05:42:41Z")

</div>

Hi operea,

Thanks for using Zoom SDK. May I inquire more details on the issue you are facing? Could you provide the following info so that we can further help you?

**Description**  
A clear and concise description of what the question is.

**Which version?**  
Knowing the version can help us to identify your issue faster.

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

1. Go to ‘…’
2. Click on ‘…’
3. Scroll down to ‘…’
4. See error

**Screenshots**  
If applicable, add screenshots to help explain your problem.

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

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Version [e.g. 22]

**Additional context**  
Add any other context about the problem here.

Thanks!

---

<div class="post-metadata">

**Author:** ![operea](https://avatars.discourse-cdn.com/v4/letter/o/9fc348/32.png) [@operea](https://devforum.zoom.us/u/operea)\
**Post date:** [October 23, 2019, 2:58pm UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/12 "2019-10-23T14:58:59Z")

</div>

Hi @carson.zoom,

I have some trouble with SDK (v4.4.55968.0904) auth implementation, for iOS swift project, this is the actual code that I wrote following the documentation for iOS integration.

Problem is in function onMobileRTCAuthReturn, this function is not running, or auth is not finish correctly.

Nothing of this appear in debug console, because the function is not running, because auth process has an unknown problem. I’m also debugging on iPhone 6 (12.4.1)  
This is all the debug console shows, as you can see nothing in function onMobileRTCAuthReturn appears.

And this is what I have no idea what is happening, when I change kSDKAppKey & kSDKAppSecret to “” as the example, function run normally.

Is the same code, same auth implementation, only different key & secret values.  
I want to know if is implementation problem or if I miss some configuration at SDK console level, please help me to solve and correct implement SDK.

Sorry for the image, reply only allow me to attach one capture.

---

<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:** [October 23, 2019, 10:36pm UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/13 "2019-10-23T22:36:41Z")

</div>

Hi [operea](https://devforum.zoom.us/u/operea),

Thanks for the info and the screenshot. It is very strange that the sdkAuth method only works when the key & secrets are empty. I tried the same operations with our demo app available on the Github and I am not able to reproduce this. Could you reproduce this issue with our demo app? If yes, could you let me know the steps to reproduce this?

What is the XCode version are you using?

**BTW, your full SDK key & secret are shown in the screenshot. I have removed your screenshot to protect your credentials. I don’t know if anyone else sees this screenshot before I remove it, so please revoke your key & secret by visiting the marketplace and regenerate the pairs.**

Thanks!

---

<div class="post-metadata">

**Author:** ![operea](https://avatars.discourse-cdn.com/v4/letter/o/9fc348/32.png) [@operea](https://devforum.zoom.us/u/operea)\
**Post date:** [October 23, 2019, 11:35pm UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/14 "2019-10-23T23:35:53Z")

</div>

Yeah, I check this in demo app, with same SDK key & secret, demo app return error 2 (because the remove you done before), and check again in my app integration, with the same result (auth function not running), then with new SDK key & secret with demo app return error 0 (auth success) and my app without behavior changes, also notice the demo language is objC, and my app language is swift, this affect SDK behavior?, SDK integration is not presenting problems because of language, have i missing some configuration parameter in AppDelegate maybe?, the documentation do not mention it, also Xcode not show build time issues. Xcode version is 10.3.

---

<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:** [October 24, 2019, 5:02am UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/15 "2019-10-24T05:02:43Z")

</div>

Hi operea,

Thanks for the reply. I only removed your screenshot in your previous reply that shows your key & secret, I did not do anything to your key & secret. Our iOS SDK works with both Objc and Swift, we have a lot of users who are using Swift. There is no language-specific configuration needed. As long as you following the instructions mentioned in the doc, our SDK should work.

We do not have Xcode 11 support yet so using Xcode 11 to build might cause some issues. Since you are using Xcode 10.3, then we can cross out the possibility of the Xcode version is the root cause of the issue you were facing.

Not sure if I understand correctly, is the issue solved? Please feel free to let me know if you have any other questions.

Thanks!

---

<div class="post-metadata">

**Author:** ![operea](https://avatars.discourse-cdn.com/v4/letter/o/9fc348/32.png) [@operea](https://devforum.zoom.us/u/operea)\
**Post date:** [October 24, 2019, 2:27pm UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/16 "2019-10-24T14:27:38Z")

</div>

Thanks @carson.zoom,

Issue is not solved yet, i keep trying to fix it checking both the demo and the integration code.

With Xcode not show build times issues, i mean that dependencies are linked correctly to the project, and this is why I think I miss something in config, yet I keep looking for the answer.

---

<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:** [October 25, 2019, 3:23am UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/17 "2019-10-25T03:23:10Z")

</div>

Hi [operea](https://devforum.zoom.us/u/operea),

Thanks for the reply. If you are following the following guidances in the doc:

- [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/getting-started/integration](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/getting-started/integration)
- [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)

Then you should be able to pass SDK auth. When I was looking at your code in your screenshot and I didn’t see any issues. Please let us know if you could provide any other info that could help us to further investigate in this issue.

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:57pm UTC](https://devforum.zoom.us/t/mobilertcauthservice-not-responding/787/18 "2020-08-21T18:57:52Z")

</div>

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


