SDKsiOS
Apply to join a group
Apply to join or directly join an OpenIM group on iOS.
[[OIMManager manager] joinGroup:groupID
reqMsg:@"I would like to join the project discussion"
joinSource:OIMJoinTypeSearch
ex:nil
onSuccess:^(NSString * _Nullable data) { [self showApplicationSubmitted]; }
onFailure:^(NSInteger code, NSString *message) {
[self showErrorCode:code message:message];
}];joinSource can indicate an invitation, search, or QR code, but it does not determine whether approval is required. When approval is required, a successful callback means only that the application was submitted. Treat the current user as a member only after onJoinedGroupAdded: arrives or a new query confirms membership.
Was this page helpful?