Description
Every time I try to authenticate the SKD, I got this error (code 2)
The documentation says to contact the support in this case.
This is my code:
-
(void)SDKAuth:(NSString *)clientKey clientSecret:(NSString *)clientSecret
{
clientKey = clientKey;
clientSecret = clientSecret;
MobileRTCAuthService *authService = [[MobileRTC sharedRTC] getAuthService];
if (authService)
{
authService.delegate = self;
authService.clientKey = clientKey;
authService.clientSecret = clientSecret;[authService sdkAuth];
}
} -
(void)onMobileRTCAuthReturn:(MobileRTCAuthError)returnValue
{
NSLog(@“onMobileRTCAuthReturn %d”, returnValue);if (returnValue != MobileRTCAuthError_Success)
{
NSString *message = [NSString stringWithFormat:NSLocalizedString(@“SDK authentication failed, error code: %zd”, @""), returnValue];NSLog(@"%@", message); NSLog(@"");
}
}
In the didFinishLaunchingWithOptions:
MobileRTCSDKInitContext *context = [[MobileRTCSDKInitContext alloc] init];
context.domain = kSDKDomain;
context.enableLog = YES;
context.locale = MobileRTC_ZoomLocale_Default;
MobileRTC *mr = [MobileRTC sharedRTC];
[mr initialize:context];
[self SDKAuth:kSDKAppKey clientSecret:kSDKAppSecret];
Smartphone (please complete the following information):
- iPhone 7
- iOS 13.6.1