Thanks for the reply. Please try to retrieve the userID from the callback - (void)onUserJoin:(NSArray*)array instead of the callback onUserAudioStatusChange.
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
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?
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.
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.
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!
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!