SDKsiOS
Unsubscribe from user status
Stop subscribing to users’ online status with OpenIM iOS SDK.
[[OIMManager manager] unsubscribeUsersStatus:userIDs
onSuccess:^(NSString *data) {
[presenceStore removeUserIDs:userIDs];
}
onFailure:nil];Unsubscribe when users leave the visible range, the page closes, or the active account changes. Remove the IDs from your application's subscription set only after the call succeeds; retain them for retry if it fails. Unsubscribing from users and removing a listener are separate operations.
Was this page helpful?