Browse SDKs · Flutter
Platform
SDKsFlutter

Accept a group application

Approve a user join application for a group using the OpenIM Flutter SDK.

Copy

A group owner or administrator calls this method to approve a pending join request:

Parameters

ParameterTypeRequiredDescription
groupIDStringYesTarget group ID.
userIDStringYesUser ID of the applicant.
handleMsgString?NoOptional approval remark message.

Code example

await OpenIM.iMManager.groupManager.acceptGroupApplication(
  groupID: groupID,
  userID: applicantUserID,
  handleMsg: 'Welcome to the team',
);

Return value

A successful Future indicates that the join application was approved and the user has officially become a member of the group.

State changes after the call

Multi-device synchronization and arriving changes trigger onGroupApplicationAccepted, while new member additions trigger onGroupMemberAdded. The client updates application status and member rosters using groupID:userID as the key. For complete listener integration, see Group applications overview.