# MobileRTCAuthError\_Unknown from iOS SDK sample application

**URL:** <https://devforum.zoom.us/t/mobilertcautherror-unknown-from-ios-sdk-sample-application/13155>\
**Category:** iOS\
**Created:** [April 14, 2020, 5:47pm UTC](https://devforum.zoom.us/t/mobilertcautherror-unknown-from-ios-sdk-sample-application/13155 "2020-04-14T17:47:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lee](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lee/32/1138_2.png) [@lee](https://devforum.zoom.us/u/lee)\
**Post date:** [April 14, 2020, 5:47pm UTC](https://devforum.zoom.us/t/mobilertcautherror-unknown-from-ios-sdk-sample-application/13155/1 "2020-04-14T17:47:39Z")

</div>

Download the iOS SDK from Github here:

> **[zoom/zoom-sdk-ios](https://github.com/zoom/zoom-sdk-ios)**
>
> Zoom iOS SDK. Contribute to zoom/zoom-sdk-ios development by creating an account on GitHub.

I added my API key + secret into the code, and ran the sample on my device.

I’m getting a MobileRTCAuthError\_Unknown from SDKAuthPresenter+AuthDelegate.m

- (void)onMobileRTCAuthReturn:(MobileRTCAuthError)returnValue

Is there a newer version of the SDK out or something else I’m missing?

---

<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:** [April 15, 2020, 6:42am UTC](https://devforum.zoom.us/t/mobilertcautherror-unknown-from-ios-sdk-sample-application/13155/2 "2020-04-15T06:42:45Z")

</div>

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

Thanks for using Zoom SDK. The SDK initialization expects a SDK key & secret. The API key & secret is used to authenticate with Zoom REST API. Please visit Marketplace and generate a SDK app to get the SDK key & secret.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![lee](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lee/32/1138_2.png) [@lee](https://devforum.zoom.us/u/lee)\
**Post date:** [April 15, 2020, 5:38pm UTC](https://devforum.zoom.us/t/mobilertcautherror-unknown-from-ios-sdk-sample-application/13155/3 "2020-04-15T17:38:14Z")

</div>

Hi Carson, thanks for the reply.

I previously was using an SDK key & secret created on the API site.

 ![Screen Shot 2020-04-15 at 10.28.45 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/f/fa950be020e4d132810b6dd65dbaaaeffaf27b8e.png)

Values from the App Credentials tab were pasted into the code as instructed.  
// SDK init  
[[[SDKInitPresenter alloc] init] SDKInit:navVC];

```
//4. MobileRTC Authorize
[[[SDKAuthPresenter alloc] init] SDKAuth:kSDKKey clientSecret:kSDKSecret];

```

I’m running Zoom’s MobileRTC sample code from Github. The only modifications are the app-id, the API key, and secret.

The error 5 ‘MobileRTCAuthError\_Unknown’ is still occurring

---

<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:** [April 16, 2020, 10:46pm UTC](https://devforum.zoom.us/t/mobilertcautherror-unknown-from-ios-sdk-sample-application/13155/4 "2020-04-16T22:46:19Z")

</div>

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

Thanks for the info. Yes, the SDK app is the one shown in your screenshot and you could get the SDK key & secret in it. Please have a try with the following step:

1. Navigate to AppDelegate.h: [https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/AppDelegate.h#L11](https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/AppDelegate.h#L11)
2. Set kSDKKey and kSDKSecret to be your SDK key & secret, set kSDKDomain to be “[https://zoom.us](https://zoom.us)”
3. Connect your iOS device to Xcode, and build the app

Please make sure you are using the SDK key & secret, not API key & secret;

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![lee](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lee/32/1138_2.png) [@lee](https://devforum.zoom.us/u/lee)\
**Post date:** [April 22, 2020, 6:56pm UTC](https://devforum.zoom.us/t/mobilertcautherror-unknown-from-ios-sdk-sample-application/13155/5 "2020-04-22T18:56:57Z")

</div>

Thank you for your help Carson.

The error has gone away. The fix came after changing the domain to [zoom.us](http://zoom.us). I previously had the domain set to something different.

---

<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:** [April 23, 2020, 7:02am UTC](https://devforum.zoom.us/t/mobilertcautherror-unknown-from-ios-sdk-sample-application/13155/6 "2020-04-23T07:02:23Z")

</div>

Glad to hear that it is working. Happy Zooming! 🙂

---

<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, 8:53pm UTC](https://devforum.zoom.us/t/mobilertcautherror-unknown-from-ios-sdk-sample-application/13155/7 "2020-08-21T20:53:59Z")

</div>


