# Subchannel Unread Count

The SDK provides a simple way for clients to retrieve the unread count for a sub channel. To view the unread count for a sub channel, we can get it from a sub channel object. This count represents the number of messages that you have not yet read in that sub channel.

{% tabs %}
{% tab title="iOS" %}
{% embed url="<https://gist.github.com/amythee/c6f41d14615bd543ef4b3f824374b45f>" %}
{% endtab %}

{% tab title="Android" %}
{% embed url="<https://gist.github.com/amythee/b6bc79e7e8ca24dc059508b4436b7ad7>" %}
{% endtab %}

{% tab title="TypeScript" %}
{% embed url="<https://gist.github.com/amythee/ab4337f792181e869923d385b13f71ac>" %}
{% endtab %}
{% endtabs %}

#### Check unread count support for sub channel

To check if a sub channel supports the Unread Count feature, you can use the following code:

{% tabs %}
{% tab title="iOS" %}
{% embed url="<https://gist.github.com/amythee/db8672de89d4cbcc66fe3025b32ff1a7>" %}
{% endtab %}

{% tab title="Android" %}
{% embed url="<https://gist.github.com/amythee/77d82123392fe3d9970504d86eeb26d3>" %}
{% endtab %}

{% tab title="TypeScript" %}
{% embed url="<https://gist.github.com/amythee/dcd116abd6bafede6c8fe7046da67cf8>" %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.social.plus/social-plus-sdk/chat/channels/unread-count/subchannel-unread-count.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
