Thanks for using Zoom SDK. The error code you got means “Invalid Argument”, and the following 3 scenarios will trigger this error:
If the paramDict is null or not valid
If the meeting number is null or not valid (e.g.: has length 0)
If the domain(kSDKDomain) is null or not valid
For #3, if the SDK is not properly initialized, then the domain will be invalid and get this error. Could you double-check the above cases and see if it is the case?
Thanks for reply, I have double checked all these details and I am sure these details I am providing are right. I don’t understand why I am getting this error. I have followed zoom tutorial for sdk integration step by step.
There is one thing I noticed, that is whenever My app loads I get " onMobileRTCAuthReturn 0 error was 0" message.
Thanks Carson_Chen.
I am sharing my xcode screenshot after I click on Join Meeting button.
and I am also sharing function code which which is returning status code 150.
- (void) joinMeeting: (NSString*) meetingNo :(NSString*) userName :(NSString*) meetingPassword{
NSLog(@"meetingNO: %@", meetingNo);
NSLog(@"meeting password: %@",meetingPassword);
NSLog(@"userName: %@",userName);
if(![meetingNo length]) {
// If the meeting number is empty, return error.
NSLog(@"Please enter a meeting number");
return;
} else {
// If the meeting number is not empty.
MobileRTCMeetingService *service = [[MobileRTC sharedRTC] getMeetingService];
if (service) {
service.delegate = self;
// initialize a parameter dictionary to store parameters.
NSDictionary *paramDict = @{
kMeetingParam_Username: userName,
kMeetingParam_MeetingNumber:meetingNo,
kMeetingParam_MeetingPassword:meetingPassword
};
MobileRTCMeetError response = [service joinMeetingWithDictionary:paramDict];
NSLog(@"onJoinMeeting, response: %d", response);
}
}
}
Thanks for sharing the information. Your code looks good. Here are the steps from initialization to join a meeting:
Set domain to be “zoom.us”, and successfully initialize the SDK
Pass SDK key/secret, and successfully do the SDK authentication
in onMobileRTCAuthReturn, get the return value == 0
Prepare to join a meeting
Set root view controller
Initialize the delegate
Get meeting service
Prepare paramDict that includes username, meeting number, and password
Pass to joinMeetingWithDictionary to join the meeting
Could you verify if you are setting the domain to be “zoom.us”? Could you hardcode the parameters in your code to see if you are able to join the meeting? Could you have a try with our demo app https://github.com/zoom/zoom-sdk-ios to see if you are able to join a meeting?
I have tried demo app it works fine , and yes I am using “zoom.us” as a domain but still not able to join meeting through our app. I also hardcoded the parameters in our app but still the same response code 150.
I have referred to the link you have provided but It didn’t help.
I have followed “https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/build-your-first-zoom-app/join-meeting” this tutorial for integrating zoom sdk with our app. May I know your best available time to have one on one conversation or any other mode of conversation, this will help us to solve prolonged issue.Please let me know your timezone as well.Also Carson_Chen You have tried my setting and code at your end and It is working so could you share that code/project with me so that I can check that as well.
I have a diferent problem when try to CREATE a meeting, im using SDK v4.4.55968.0904, problem is i’m getting error code 150, when parameter isAppShare is false and true either
Thank you very much for the code snippet. I tried exactly the same code you have and I am able to start a meeting with this. The following situation could cause the start meeting method returns 150:
The param is invalid
The web domain is not correctly set at initialization
Since you are using the parameter object for logged in user, if the user is not logged in, then it will return 150. Please note that our login method is async, please wait for the login status to be success in the onMobileRTCLoginReturn callback before you perform the start meeting action
I stop trying to start meeting process, so i try to join a meeting, with same error 150.
I think situation 1 is the problem, i try to change data type to NSDictionary but function .joinMeeting(with: ) require a downcast to accept parameter, i try also with Dictionary<String,Any> and [AnyHashable,Any] data type, with same result.
The situations 2,3,& 4, are correct implemented so I discard them, console shows correct auth & login callbacks, meeting number is valid, and web domain is correctly set.
I double check the documentation and your demo, objC demo code send NSDictionary data type, but swift integration does not accept this data tipe directly in to the function, when you tried the same code, what data type did you use into the function?
I found also, the demo app shows an alert to set an user name and a password after the meeting number & password input, this is necessary for join a meeting process?, this step is not in the documentation.
I see what you say looks right. In addition, I also tested our sample, and everything was work.
Therefore, I hope you can take a closer look at our integration document and refer to our sample project.
One thing to note is that auth success is a prerequisite for everything.