Browse SDKs · React Native
SDKsReact Native

Get subscribed user status

Get the status of subscribed users with the OpenIM React Native SDK.

Copy

Call getSubscribeUsersStatus() to get the online status of users subscribed by the current account.

const states = await OpenIMSDK.getSubscribeUsersStatus();

The method returns UserOnlineState[] for the subscribed users. Subscribe to a target user first with Subscribe to online status.