# No App Delegate file in v4.3.1.47193.0321

**URL:** <https://devforum.zoom.us/t/no-app-delegate-file-in-v4-3-1-47193-0321/5600>\
**Category:** macOS\
**Created:** [August 20, 2019, 8:40am UTC](https://devforum.zoom.us/t/no-app-delegate-file-in-v4-3-1-47193-0321/5600 "2019-08-20T08:40:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon\_lfd](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@simon\_lfd](https://devforum.zoom.us/u/simon_lfd)\
**Post date:** [August 20, 2019, 8:40am UTC](https://devforum.zoom.us/t/no-app-delegate-file-in-v4-3-1-47193-0321/5600/1 "2019-08-20T08:40:15Z")

</div>

So, the documentation for the MacOs (v4.3.1.47193.0321) desktop release asks you to set the constants:

**kZoomSDKAppKey**  
**kZoomSDKAppSecret**  
**kZoomSDKDomain**

… in the file _appDelegate.m_

Now, the file _appDelegate.m_ does not exist and the visual in the documentation does not match the file SDKAppDelegate.m - the closest match in the project directory.

Adding the constants in that file appears to make no difference - one is prompted for all those values when the app starts.

Further, a scan of the source code reveals no reference to the values kZoomSDKAppKey _or_ kZoomSDKAppSecret

I am a noob but, exactly for this reason, having documentation which matches the supplied SDK so poorly is profoundly unhelpful.

---

<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:** [August 20, 2019, 5:07pm UTC](https://devforum.zoom.us/t/no-app-delegate-file-in-v4-3-1-47193-0321/5600/2 "2019-08-20T17:07:38Z")

</div>

Hi simon,

Thanks for using Zoom SDK. We have changed the location of the key and secret in the demo to `ZMSDKLoginWindowController`, you may find it here:[https://github.com/zoom/zoom-sdk-macos/blob/master/ZoomSDKSample/ZoomSDKSample/UI%20Interface/ZMSDKLoginWindowController.m](https://github.com/zoom/zoom-sdk-macos/blob/master/ZoomSDKSample/ZoomSDKSample/UI%20Interface/ZMSDKLoginWindowController.m).

We are under the construction of improving our documentation. Pardon the inconvenience caused by the misleading info in the doc.

Let me know if you have any other questions. Thanks!

---

<div class="post-metadata">

**Author:** ![simon\_lfd](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@simon\_lfd](https://devforum.zoom.us/u/simon_lfd)\
**Post date:** [August 22, 2019, 11:02am UTC](https://devforum.zoom.us/t/no-app-delegate-file-in-v4-3-1-47193-0321/5600/3 "2019-08-22T11:02:02Z")

</div>

Setting the variables there (where the placeholders are at line 19 in the file ZMSDKLoginWindowController.m) makes no difference to the experience launching the app. One is immediately prompted for the domain and then the keys.

Is this the intention? It certainly makes a nonsense of a secret key if need to distribute it to my users.

As I say, and I may be displaying by ignorance here, the only point where the string **kZoomSDKDomain** is referenced in the Xcode workspace is commented out in the function onSetDomainClicked in the same file - which seems a strange place to implement it _after_ the user has requested the domain manually (and it is commented out so is never implemented anyway).

It’s not my native environment but I could possibly slug through the code and use the defined constants by default but it seems ever more distant from the breezy ease of use suggested in the docs.

---

<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:** [August 22, 2019, 5:54pm UTC](https://devforum.zoom.us/t/no-app-delegate-file-in-v4-3-1-47193-0321/5600/4 "2019-08-22T17:54:23Z")

</div>

Hi Simon,

Thanks for the reply.

You might have noticed that in `ZMSDKLoginWindowController.m`, the following 2 lines are commented out:

- setDomain: [Line 123](https://github.com/zoom/zoom-sdk-macos/blob/master/ZoomSDKSample/ZoomSDKSample/UI%20Interface/ZMSDKLoginWindowController.m#L123)
- auth: [Line 129](https://github.com/zoom/zoom-sdk-macos/blob/master/ZoomSDKSample/ZoomSDKSample/UI%20Interface/ZMSDKLoginWindowController.m#L129)

Uncomment these 2 lines and comment out the other 2 lines(setDomain & auth) that is getting domain, key and secret from the UI input, then the hardcoded value in kZoomSDKDomain, kZoomSDKKey, kZoomSDKSecret will be used directly.

The reason why we have the set domain window and the set key&secret window in our demo app is because we want to show the correct steps of using our SDK.

Since this is a demo app, so you may hard code the credentials for development and testing purpose, in the production environment, we highly discourage the way of hardcoding anything in your app that uses Zoom SDK. Please see: [https://github.com/zoom/zoom-sdk-macos#disclaimer](https://github.com/zoom/zoom-sdk-macos#disclaimer)

We will continue improving our documentation as well as our demo app. Your feedback is really valuable to us.

Let me know if there is any other things that I can help.

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:39pm UTC](https://devforum.zoom.us/t/no-app-delegate-file-in-v4-3-1-47193-0321/5600/5 "2020-08-21T18:39:49Z")

</div>

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


