diff --git a/uikit/src/main/java/com/sendbird/uikit/fragments/BaseFragment.java b/uikit/src/main/java/com/sendbird/uikit/fragments/BaseFragment.java index 8978fe78..4b2edf03 100644 --- a/uikit/src/main/java/com/sendbird/uikit/fragments/BaseFragment.java +++ b/uikit/src/main/java/com/sendbird/uikit/fragments/BaseFragment.java @@ -50,6 +50,9 @@ protected void connect() { public void onDestroy() { super.onDestroy(); SendBird.removeConnectionHandler(CONNECTION_HANDLER_ID); + SendBirdUIKit.disconnect(() -> { + Logger.dev(">> BaseFragment::disconnect()"); + }); } @Override