tencent cloud

All product documents
Chat
Last updated: 2025-03-20 16:05:14
Android
Last updated: 2025-03-20 16:05:14

Description

TUIKit supports displaying user online status starting from version 6.5.2803.
When "Show User Online Status" is enabled, user online status will be displayed on each user's avatar in the chat list and contact list. A green circle indicates online; absence of the green circle indicates offline.
When "Show User Online Status" is disabled, user online status will not be displayed.
Note:
The "User Online Status" feature is only supported by the Pro edition 、Pro Plus edition 、Enterprise edition. Please make sure that the Pro 、Pro Plus or Enterprise package is activated before using this feature.
The "User Online Status" feature requires turning on the user status switch in the Chat console. Please make sure that the switch is turned on before using this feature.

Enabling User Online Status in Chat List

In the TUIConversation component, within the TUIConversationConfig.java file, a switch for the "User Online Status" feature, named isShowUserStatus, is provided. Its type is boolean, with the default value of false.
public class TUIConversationConfig {
private boolean isShowUserStatus;
}
To enable the chat list to display user online status, first subscribe to the Pro 、Pro Plus or Enterprise package, then turn on the user status feature switch in the Chat console, and change the default value of isShowUserStatus to true, or call the following method before initializing the chat page.
TUIConversationConfig.getInstance().setShowUserStatus(true);

Chat List Effect




Enabling User Online Status in Contacts List

In the TUIContact component, within the TUIContactConfig.java file, a switch for the "User Online Status" feature, named isShowUserStatus, is provided. Its type is boolean, with the default value of false.
public class TUIContactConfig {
private boolean isShowUserStatus;
}
To enable the contacts list to display user online status, first subscribe to the Pro 、Pro Plus or Enterprise package, then turn on the user status feature switch in the Chat console, and change the default value of isShowUserStatus to true, or call the following method before initializing the contacts list page.
TUIContactConfig.getInstance().setShowUserStatus(true);

Contacts List Effect




FAQs

When the Subscription/Unsubscription API is called, the API returns error code "72001".

Error code 72001 indicates that the corresponding capability has not been activated in the console. Please log in to the Chat console and enable the corresponding feature switch.




Error: The package does not support the use of this API. Please upgrade to the Pro 、Pro Plus or Enterprise package.

The "User Online Status" feature is only supported by the Pro 、Pro Plus or Enterprise package. This error message indicates that your current package does not support this feature. Please log in to the Chat purchase page to activate the Pro 、Pro Plus or Enterprise package and experience it.

Exchange and Feedback

Join the Telegram technical exchange group or WhatsApp discussion group, benefit from the support of professional engineers, and solve your toughest challenges.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon