Comments

Here's an overview of how you can get started integrating comments into your applications

Comments are a way to create comments for a particular piece of content without needing to join a channel or manage channel memberships.

Amity Social SDK provides support for common text in comments.

Comment Description

Comment reference type

A comment's referenceType can be:

  • post

  • content

A post type comment is a comment that is intended for a regular post. A content type comment on the other hand is intended for a content type post. A content type comment will automatically create a content post if the referenceId does not exist yet.

Content ID

Unlike messages, comments are directly tied to a specific referenceId that is managed by the client. The referenceId has to be unique but can be any string.

Sending Comments

All comment sending methods are designed to be robust enough to work under any network conditions. When you send any comment, that comment will automatically be placed into a queue in case of unstable network conditions. Once the SDK reconnects to the server, it will automatically resend all queued comments.

Additionally, sent comments are always returned in comment queries, even before they are delivered to the server. It is done to provide the user with a fluid commenting behavior - when a user sends a comment, that comment would appear in the comment list right away, instead of waiting until it has been confirmed by the server.

Last updated