Mentions allow users to tag other users in messages. It's a powerful tool for fostering engagement and collaboration within your social application. With mentions, users can easily notify specific individuals or groups to new content or important updates. In the SDK, mentions can be implemented in a range of ways, depending on your application's needs and user experience. For more information about mentions, please refer to Mentions. We only support the ability to mention in only these channel types:
Community
Live
You can easily mention users when creating a message by including their user IDs in the mention user parameter as well as defining metadata for mention rendering. For further explanation, please refer to #mention-users. We offer two types of mentions that can be included in a message:
When using this type of mention, up to 30 channel members can be notified through push notifications. Each individual member mentioned in the message will receive a notification.
Version 6
Version 5 (Maintained)
Version 6
Beta (v0.0.1)
By specifying the channel ID in the mention channel parameter when creating a message, push notifications will be sent to all members of that channel when this type of mention is used.
Version 6
Version 5 (Maintained)
Version 6
Beta (v0.0.1)
We provide developers with an efficient method for updating messages with mentions of specific users, you can easily add mentions to their post updates and but it will not notify the relevant users.
To remove mentions you can provide an empty JSON object for the metadata parameter, and an empty list for the mention users parameter. By doing so, You can easily remove mentions from the post content, while ensuring that the overall structure of the post remains intact.
Version 6
Beta (v0.0.1)
The functionality isn't currently supported by this SDK.
To render mentions in a supported feature, please refer to #render-mentions, specifically the section on handling mentions. This documentation provides detailed information on how to represent mentions in your application, including information on metadata structure, custom mention objects, and rendering support.
When a member is mentioned(mention type could be channel as well) in a text message and the message is not read, then hasMention
property is "true" in Channel
class. Every time the hasMention
property is true, this means that the member has an unread message with mention(message could be created or updated as well).