Hi Michael, sorry for the delay as I’ve been trying your suggestions + some other things to fix the issue, and here’s what I’ve found.
I can put any string under KjwtToken and the error will disappear, but the problem persists that settings and meet now don’t trigger a response. Join meeting will still prompt meeting credentials, but will be unable to join a valid meeting when filled in. I apologize but I’m very new to this type of development! I tried generating a valid JWT token using jwt.io but this hasn’t solved the issue yet, and I’m not getting any error codes.
Here’s my code for appDelegate.h:
//
#import <UIKit/UIKit.h>
#define KjwtToken @“JWT_TOKEN”
#define kSDKDomain @“zoom.us”
#define kSDKAppKey @“SDKAPPKEY”
#define kSDKAppSecret @“SDKAPPSECRET”
@interface AppDelegate : UIResponder <UIApplicationDelegate, UIAlertViewDelegate, MobileRTCPremeetingDelegate>
@property ( strong , nonatomic ) UIWindow *window;
- (UIViewController *)topViewController;
@end
and here’s my code for sdkAuthPresenter.m:
//
// SDKAuthPresenter.m
// MobileRTCSample
//
// Created by Zoom Video Communications on 2018/11/15.
// Copyright © 2018 Zoom Video Communications, Inc. All rights reserved.
//
#import “SDKAuthPresenter.h”
#import “AppDelegate.h”
#import “SDKAuthPresenter+AuthDelegate.h”
@interface SDKAuthPresenter()
@end
@implementation SDKAuthPresenter
-
(void)SDKAuth:(NSString *)jwtToken
{
MobileRTCAuthService *authService = [[MobileRTC sharedRTC] getAuthService];
if (authService)
{
authService.delegate = self;
// Here need add your jwtToken, if jwtToken is nil or empty,We will user your clientKey and clientSecret to Auth, We recommend using JWTToken.
authService.jwtToken = jwtToken;
[authService sdkAuth];
}
}
#pragma mark - AlertView Delegate
- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex
{
if (buttonIndex != alertView.cancelButtonIndex)
{
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self SDKAuth:KjwtToken];
});
}
}
@end
Thanks,
Carter