Skip to main content

Notification message format

Info notification message

Nexconn defines the info notification message (gray bar notification) with ObjectName RC:InfoNtf. Use it to send or insert notifications and tips in a channel.

When sending via the server API, specify the ObjectName and serialize the content JSON into a string for the content field. Built into the client SDK.

Content structure

JSON
{
"message":"Please be cautious about personal and financial safety during the chat.",
"extra":""
}
FieldTypeRequiredDescription
messageStringYesNotification content.
extraStringNoCustom extension data.

Client defaults

  • Stored on the client
  • Does not count as unread
  • Push not supported by default: No preset push content. Provide custom pushContent at send time to trigger push notifications.

Recall notification message

Nexconn defines the recall notification with ObjectName RC:RcNtf. Displayed in the UI after a message is recalled.

Built into the client SDK. Used internally after a recall operation. Not recommended for direct use.

Content structure

FieldTypeRequiredDescription
operatorIdStringNoUser ID of the operator who initiated the recall.
recallTimeLongYesSend time of the original recalled message (milliseconds).
originalObjectNameStringYesMessage type of the original message.
originalMessageContentObjectNoContent of the original message.
recallContentStringNoContent of the recalled text message.
recallActionTimeLongNoTimestamp when the recall command (RC:RcCmd) was sent (milliseconds).
adminBooleanYesWhether the recall was performed by an admin.
deleteBooleanYesWhether to delete the original record on mobile clients. false: replace with recall notification. true: delete and hide the notification.
userObjectNoSender user info. Recommended for live streaming scenarios only.
extraStringNoAdditional information.

Client defaults

  • Stored on the client
  • Does not count as unread
  • Push not supported by default

Profile change notification message

ObjectName: RC:ProfileNtf. Notifies users of profile changes.

Content structure

JSON
{
"operation":"Update",
"data":"{\"nickname\":\"Alice\", \"hometown\":\"beijing\"}",
"extra":""
}
FieldTypeRequiredDescription
operationStringYesProfile operation name (user-defined).
dataStringYesOperation data.
extraStringNoCustom extension data.

Client defaults

  • Stored on the client
  • Does not count as unread
  • Push not supported by default

Contact (friend) notification message

ObjectName: RC:ContactNtf. Notifies users of contact/friend operations.

Content structure

JSON
{
"operation":"Request",
"sourceUserId":"123",
"targetUserId":"456",
"message":"Hi, can we be friends?",
"extra":""
}
FieldTypeRequiredDescription
operationStringYesContact operation. Predefined constants: Request, AcceptResponse, RejectResponse. Extensible by the developer.
sourceUserIdStringYesUser ID of the notification sender.
targetUserIdStringYesFor direct channels: recipient user ID. For group/open channels: channel ID.
messageStringYesRequest or response message (e.g., reason for adding or rejecting).
extraStringNoCustom extension data.

Client defaults

  • Stored on the client
  • Does not count as unread
  • Push not supported by default

Group notification message

ObjectName: RC:GrpNtf. Notifies users of group operations.

Content structure

JSON
{
"operatorUserId":"4324",
"operation":"Rename",
"data":"Group operation data",
"message":"Renamed the group to Local Life",
"extra":""
}
FieldTypeRequiredDescription
operatorUserIdStringYesOperator's user ID.
operationStringYesOperation name (e.g., Create, Rename, Add, Kicked, Quit, Dismiss).
dataStringYesOperation data.
messageStringYesMessage content.
extraStringNoCustom extension data.

Client defaults

  • Stored on the client
  • Does not count as unread
  • Push not supported by default

Group notification data examples

  • Create (operation: "Create"): data contains operatorNickname and targetGroupName.
  • Rename (operation: "Rename"): data contains operatorNickname and targetGroupName.
  • Add members (operation: "Add"): data contains operatorNickname, targetUserIds, targetUserDisplayNames.
  • Remove members (operation: "Kicked"): data contains operatorNickname, targetUserIds, targetUserDisplayNames.
  • Quit (operation: "Quit"): data contains operatorNickname, targetUserIds, targetUserDisplayNames, newCreatorId.
  • Dismiss (operation: "Dismiss"): data contains operatorNickname.

Command notification message

ObjectName: RC:CmdNtf. Unlike the command message (RC:CmdMsg), this message is stored and displayed in the UI.

Content structure

JSON
{
"name":"AtPerson",
"data":"{\"sourceId\":\"9527\"}"
}
FieldTypeRequiredDescription
nameStringYesCommand name.
dataStringNoCommand data. Accepts any format (e.g., JSON).

Client defaults

  • Stored on the client
  • Does not count as unread
  • Push not supported by default