Browse SDKs · Android
SDKsAndroid

Accept a group application

Use acceptGroupApplication to accept a user’s application to join a group.

Copy

Pass the application's groupID, the applicant's userID, and a handling message. The current user must have permission to approve the application.

OpenIMClient.getInstance().groupManager.acceptGroupApplication(new OnBase<String>() {
    @Override public void onSuccess(String data) { /* The request completed. */ }
    @Override public void onError(int code, String error) { /* code and error describe the failure. */ }
}, groupID, applicantUserID, "Welcome to the group");

After acceptance, receive application status and member change notifications through the relevant events described in Group overview.