Platform Availability
Parameters
Dedicated Helpers
Use the dedicated iOS and Android helpers when you want the latest comment without building a manual one-item query.Query the Latest Comment
Use this pattern on TypeScript and Flutter, or when you want the same query-based behavior across platforms.Include Replies
For iOS and Android dedicated helpers,includeReplies controls whether replies can be returned as the latest comment.
For query-based implementations, use the
parentId filter:
- Omit
parentIdto query comments from all levels where the SDK supports it. - Set
parentIdtonull/nilto query only top-level comments. - Set
parentIdto a comment ID to query replies to that comment.
Notes
- The dedicated iOS and Android latest-comment helpers return one comment, not a live object or live collection.
- Use Query Comments when you need pagination, filtering, or a full thread.
- Handle the empty state in query-based implementations because a reference may not have comments yet.
Related Topics
Query Comments
Query comments with parent filters, deleted-state filters, and pagination.
Get Comment
Retrieve a specific comment by ID.