Browse SDKs · iOS
SDKsiOS

Retrieve received group applications

Retrieve received iOS group applications with pagination.

Copy
GetGroupApplicationListAsRecipientReq *req =
  [[GetGroupApplicationListAsRecipientReq alloc] initWithGroupIDs:@[groupID]
    handleResults:@[@(OIMApplicationStatusNormal)] offset:0 count:20];
[[OIMManager manager] getGroupApplicationListAsRecipientWithReq:req
  onSuccess:^(NSArray<OIMGroupApplicationInfo *> *items) { [self replaceItems:items]; }
  onFailure:^(NSInteger code, NSString *message) { [self showErrorCode:code message:message]; }];

The success callback returns a snapshot of applications the current user is authorized to handle. Increment the pagination offset by the number of requested items.