Browse SDKs · React Native
Platform
SDKsReact Native

Unsubscribe from user online status

Stop observing presence status for specified users with the OpenIM React Native SDK.

Copy

Cancel active presence subscriptions for designated users:

await OpenIMSDK.unsubscribeUsersStatus(userIDs);

Parameters

ParameterTypeRequiredDescription
userIDListstring[]YesArray of user IDs to unsubscribe from.

Return value

A resolved Promise confirms that the subscription was removed on the server.

Unsubscribe when paging away, clearing search results, unmounting components, or logging out. Once unsubscribed, presence events for these users cease arriving.