Deallocating or setting the SDK to nil is not working | Community
Skip to main content
Newcomer
February 24, 2024
Question

Deallocating or setting the SDK to nil is not working

  • February 24, 2024
  • 0 replies
  • 5 views

MobileRTCSDKInitContext *context = [MobileRTCSDKInitContext new];

 context.domain = @"zoom.us";

 context.enableLog = YES;

  BOOL sdkInitSucss = [[MobileRTC sharedRTC] initialize:context];

  if (sdkInitSuc) { 

MobileRTCAuthService *authService = [[MobileRTC sharedRTC] getAuthService];

    if (authService) {

     authService.delegate = self;

     authService.jwtToken =@"JWT_TOKEN";

      [authService sdkAuth];

    }

Once the MobileRTCSDKInitContext is initialized successfully, subsequent attempts to reinitialize the SDK fail. This means that the SDK can only be initialized once per session. If the app is terminated and relaunched, the SDK initialization will succeed again.