7.4 Join Public Group

The joinPublicGroup:success:failure method is used to join any public group of the organisation.

Method parameters :

  • publicGroupId : Group Id of the Public Group.

  • success : Success block to be executed after group is successfully joined.

  • failure : Failure block to be executed if group could not be joined, returns BayunError.

[[BayunCore sharedInstance] joinPublicGroup:@"publicGroupId" success:^{
    NSLog(@"Group joined successfully.");
} failure:^(BayunError error) {
   NSLog(@"Error joining group.");
}];

Last updated