tencent cloud

Chat

News and Announcements
Release Notes
Announcements
Product Introduction
Overview
Basic Concepts
Scenarios
Features
Account System
User Profile and Relationship Chain
Message Management
Group Related
Official Account
Audio/Video Call
Use Limits
Purchase Guide
Billing Overview
Pricing
Purchase Instructions
Renewal Guide
Service Suspension Explanation
Refund Policy
Development Guidelines
Demo Zone
Activate Service
Free Demos
Quick Run
Download
SDK and Demo Source Code
Update Log
Chat Interaction (UI Included)
TUIKit Introduction
Getting Started
Full-feature Integration
Single-function Integration
Build with AI
Build Basic Interfaces
More Features
Customizing Appearance
Internationalization
Push Service
Overview
Noun explanation
Activate the Service
Quick Start
Manufacturer Channel
Statistics
Troubleshooting Tool
Client APIs
REST API
Push Callback
Advanced Features
Release Notes
Error Codes
FAQS
Desk
Overview
Quick Start
Integration Guide
Admin Operation Manual
Agent Manual
More Practices
Live Streaming Setup Guide
AI Chatbot
Super Large Entertainment and Collaboration Community
Discord Implementation Guide
How to Integrate Chat into Games
WhatsApp Channel-style Official Account Integration Solution
Send Red Packet
Firewall Restrictions
No UI Integration
Quick Start
SDK Integration
Initialization
Login and Logout
Message
Conversation
Group
Community Topic
User Profile and Relationship Chain
Offline Push
Cloud Search
Local Search
Official Channel Management
Client APIs
JavaScript
Android
iOS & macOS
Swift
Flutter
Electron
Unity
React Native
C APIs
C++
Server APIs
Secure authentication with UserSig
RESTful APIs
Webhooks
Console Guide
New Console Introduction
Creating and Upgrading an Application
Basic Configuration
Feature Configuration
Account Management
Group Management
Official Channel Management
Webhook Configuration
Usage
Viewing Guide for Resource Packages
Real-Time Monitor
Auxiliary Development Tools
Access Management
Advanced Features
FAQs
uni-app FAQs
Purchase
SDK
Account Authentication
User Profile and Relationship Chain
Message
Group
Audio-Video Group
Nickname and Profile Photo
Security Compliance Certification
Service Level Agreement
Security Compliance Certification
Chat Policies
Privacy Policy
Data Privacy and Security Agreement
Migration
Migration Solutions
Migration Solutions Lite
Error Codes
Contact Us

Android

PDF
Focus Mode
Font Size
Last updated: 2025-06-20 16:13:28

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.
Only friends in the conversation list support displaying their online status. If you need to support non-friends, you should call the API to subscribe to non-friends' status and implement the UI yourself. API reference: User Status.

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.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback