getMeetingService=nil

You need to initialize in appdelegate class

BOOL useCustomizedUI = NO;
ZoomSDK* sdk = [ZoomSDK sharedSDK];

NSString* domain = kZoomSDKDomain;
NSString* key = kZoomSDKKey;
NSString* secret = kZoomSDKSecret;

[sdk initSDK:useCustomizedUI];
[sdk setZoomDomain:domain];

ZoomSDKError ret = [[sdk getAuthService] sdkAuth:key appSecret:secret]

Hi @tmiskiew,

Thanks for the reply. Please try to retrieve the userID from the callback - (void)onUserJoin:(NSArray*)array instead of the callback onUserAudioStatusChange.

Hope this helps. Thanks!

i need sample project please provide me .

still am getting meetingservice null

i need sample project please provide me .

still am getting meetingservice null please help me

Hi @rajking229,

Thanks for the reply. Are you getting null form MeetingService in the demo app or your own app that integrates the SDK?

Thanks!

demo app not working when i run the app zoomsdk.h file not found issue came?

demo app not working when i run the app zoomsdk.h file not found issue came?

Hi @rajking229,

Thanks for the reply. I just try the demo app and I am not able to reproduce the issue you are facing. Here are the steps to run the demo app:

  1. Download the latest version of SDK(https://github.com/zoom/zoom-sdk-macos/releases/tag/v5.2.41735.0929)
  2. Move the “Zoom SDK” folder into “ZoomSDKSample”
  3. Open “ZoomSDKSample” and use Xcode 10 to open the ZoomSDKSample.xcodeproj
  4. Build and run the sample app
    Please have a try and hope this helps.

Thanks!

Thanks for you help, I did same settings of my project. but “let service = zoomsdk?.getMeetingService()” always return me nil. Not have idea or even not got any solution how to resolve it.
Waiting for you kind response.
Thanks in-advance

Hi @muhammad.aurangzaib, thanks for using the dev forum.

Typically, getMeetingService() returns nil when the SDK has not been properly initialized. There are a few potential causes of this, so we will need to get more information in order to determine what is going wrong.

Can you please what value you are seeing returned from the initSDK method as well as the value of the parameter in the onZoomSDKAuthReturn callback?

Thanks!

Thanks @jon.zoom for reaching me out. in onZoomSDKAuthReturn callback I received

PAC result block not invoked

2020-11-27 14:23:00.004916+0500 Zoom-SDK-Test[9005:256228] Received XPC error Connection invalid for message type 3 kCFNetworkAgentXPCMessageTypePACQuery
__C.ZoomSDKAuthError(rawValue: 5) error.

here is my code.

let sdk = ZoomSDK.shared()
   sdk?.initSDK(true) 
  sdk?.zoomDomain = "zoom.com"       
  let authContext = ZoomSDKAuthContext()
  authContext.jwtToken = [redacted]

let authService = sdk?.getAuthService()
authService?.sdkAuth(authContext)
authService?.delegate = self
authService?.sdkAuth(key, appSecret: secret)
authService?.login(userEmail, password: userPassword, rememberMe: true)

let isAuth = authService?.isAuthorized()
debugPrint(isAuth)

I’m login Zoom.us with Gmail, I used password from Personal Meeting ID session URL pwd param.

Hi @muhammad.aurangzaib, thanks for the additional info.

Looking through your code, I noticed that you are using zoom.com as the domain. I tested this locally and it seems to work (presumably because it is redirected), but the correct domain is zoom.us.

That being said, based on the error code you are receiving, it appears to be a network-related issue. Please ensure that you are able to access the internet within your application and on the device you are running it on.

Lastly, I had to remove the jwtToken value from your post for security purposes. As a reminder, you should never share your developer credentials or other privileged information on this forum or anywhere publicly. Before I removed it, I found that the structure of it is not correct. Here is an example of how the JWT should be structured.

Thanks!

Thanks for you reply, I did set all the thing which you told me, but now it return ZoomSDKAuthError_Timeout in onZoomSDKAuthReturn delegate method.

Now I’m using correct user email and password also using other authentication keys like SDK key and SDK secret as well.
but still not getting succeed.

Here is error log:

2020-12-10 15:36:16.060588+0500 Zoom-SDK-Test[14713:359106] dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:21 Err:-1 Errno:1 Operation not permitted
2020-12-10 15:36:16.178613+0500 Zoom-SDK-Test[14713:359106] dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:21 Err:-1 Errno:1 Operation not permitted
__C.ZoomSDKAuthError(rawValue: 4)

Kindly help me.
Thanks in advance.

Hi @muhammad.aurangzaib,

Based on the logs you have provided, it appears that your OS is blocking your application from accessing the internet, resulting in the SDK not being able to connect to our auth servers.

Thanks!

In case anyone else ends up here in 2022 with getMeetingService returning nil, and you’ve exhausted all other options explained in this thread, and the sample code works but yours doesn’t, I’d like to put on the record what my problem was.

Even if sdkAuth: returns success, you can’t immediately call getMeetingService. You must wait for the delegate callback onZoomSDKAuthReturn: before getMeetingService will succeed!

-Ken

Hi @engineering4, thanks for sharing your solution!

You are correct that you must wait for the SDK auth callback before using other classes within the SDK. We plan on improving our documentation to make this clear in the future, but glad you were able to find this out!

Thanks!