Browse SDKs · iOS
SDKsiOS

Set the group-member extension field

Set an application-defined extension string for a specified group member with OpenIM iOS SDK.

Copy
NSDictionary *updates = @{
    @"groupID": groupID,
    @"userID": targetUserID,
    @"ex": mergedExtensionJSON
};

[[OIMManager manager] setGroupMemberInfo:updates
    onSuccess:nil
    onFailure:nil];

ex is replaced as a complete string. The SDK does not merge JSON automatically. Preserve namespaces owned by other application modules before writing.

The success callback, arrival of onGroupMemberInfoChanged:, and a new query are three separate stages. Merge the final member profile by groupID:userID.