# Sample App not work

**URL:** <https://devforum.zoom.us/t/sample-app-not-work/26772>\
**Category:** iOS\
**Created:** [August 11, 2020, 1:58am UTC](https://devforum.zoom.us/t/sample-app-not-work/26772 "2020-08-11T01:58:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shmoon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shmoon/32/13331_2.png) [@shmoon](https://devforum.zoom.us/u/shmoon)\
**Post date:** [August 11, 2020, 1:58am UTC](https://devforum.zoom.us/t/sample-app-not-work/26772/1 "2020-08-11T01:58:26Z")

</div>

**Description**  
Sample App not work in my iPhone(iOS13)  
Meet Now and Setting button not active.

MobileRTCMeetingService \*ms = [[MobileRTC sharedRTC] getMeetingService];  
“ms” is always nil

and i set parameter like this  
#define KjwtToken @“eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOm51bGwsImlzcyI6ImgzOTNPWWE0UnpHMjZlM1FQRW9KWkEiLCJleHAiOjE1OTc3MTUwMDgsImlhdCI6MTU5NzExMDIwOH0.QEPnoshBKiVcXMhsMDXym36GbPUBUUVHmL7lT4FhkPU”  
#define kSDKDomain @“[zoom.us](http://zoom.us)”

**Which version?**  
v5.0.24433.0616

**Screenshots**

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

- Device: iPhone 11 pro max
- OS: iOS 13
- Version 13.6

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

1. List item

---

<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 12, 2020, 6:12am UTC](https://devforum.zoom.us/t/sample-app-not-work/26772/2 "2020-08-12T06:12:26Z")

</div>

Hi @shmoon,

Thanks for the post. If the SDK has not been initialized successfully, you will not be able to use the meeting services. It is highly possible that your JWT token did not pass the SDK Auth. What is the return value from the callback `onMobileRTCAuthReturn`? Are you using SDK key&secret to compose the JWT token? Could you provide a payload of your JWT token?

Thanks!

---

<div class="post-metadata">

**Author:** ![shmoon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shmoon/32/13331_2.png) [@shmoon](https://devforum.zoom.us/u/shmoon)\
**Post date:** [August 12, 2020, 8:01am UTC](https://devforum.zoom.us/t/sample-app-not-work/26772/3 "2020-08-12T08:01:23Z")

</div>

Hi Carson\_Chen  
Thanks to replay.

Am i use JWTToken Auth not work.  
MobileRTCAuthService \*authService = [[MobileRTC sharedRTC] getAuthService];  
if (authService)  
{  
authService.delegate = self;  
authService.jwtToken = KjwtToken;  
[authService sdkAuth];  
}  
this logic “onMobileRTCAuthReturn” not called.

but  
MobileRTCAuthService \*authService = [[MobileRTC sharedRTC] getAuthService];  
if (authService)  
{  
authService.delegate = self;  
// authService.jwtToken = KjwtToken;  
authService.clientKey = kSDKAppKey;  
authService.clientSecret = kSDKAppSecret;  
[authService sdkAuth];  
}  
this logic is work. auth successful…

---

<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 13, 2020, 6:55am UTC](https://devforum.zoom.us/t/sample-app-not-work/26772/4 "2020-08-13T06:55:02Z")

</div>

Hi @shmoon,

Thanks for sharing the code snippet. If the 2nd method works, then it means that the SDK key/secret is working and the JWT token is invalid. Could you provide the payload of the JWT token that is generated from SDK key/secret?
