Browse SDKs · Android
SDKsAndroid

Reject a group application

Use the Android SDK to reject a user’s application to join a group.

Copy

The reject operation also takes the application's groupID, the applicant's userID, and a handling message.

OpenIMClient.getInstance().groupManager.refuseGroupApplication(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, "The group is currently full");

A successful callback means that the rejection request completed; it does not mean that every client has received the change. onGroupApplicationRejected provides the updated GroupApplicationInfo. Merge it by groupID:userID, and query the application list again when necessary. See Group overview for the complete listener setup.