Browse SDKs · iOS
SDKsiOS

Publish or update a group announcement

Partially update a group announcement with OpenIM iOS SDK.

Copy
NSDictionary *changes = @{
    @"groupID": groupID,
    @"notification": announcement
};

[[OIMManager manager] setGroupInfoDictionary:changes
    onSuccess:nil
    onFailure:nil];

notification is the group announcement and is distinct from the group description in introduction. Pass an empty string to clear the announcement. OpenIMServer performs the final permission check.

The success callback, arrival of onGroupInfoChanged:, and a new query are three separate stages. For the complete delegate, see Groups overview.