Browse SDKs · React Native
Platform
SDKsReact Native

Accept a group application

Approve an incoming group join request as group owner or administrator using the OpenIM React Native SDK.

Copy

Approve an applicant's pending join request as a group owner or administrator:

await OpenIMSDK.acceptGroupApplication({
  groupID: application.groupID,
  fromUserID: application.userID,
  handleMsg: 'Approved',
});

Parameters

ParameterTypeRequiredDescription
groupIDstringYesTarget group ID of the application.
fromUserIDstringYesApplicant user ID (corresponds to application.userID).
handleMsgstringYesApproval note text. Pass an empty string "" if not provided.

Return value

A resolved Promise confirms that the join application was approved on the server.

Approval triggers OnGroupApplicationAccepted, while the applicant joining the group emits OnGroupMemberAdded. Maintain the new member record using the composite key groupID:userID. For complete event handling, see Get received group applications.