tencent cloud

Chat

製品の説明
製品の概要
Basic Concepts
ユースケース
機能概要
アカウントシステム
ユーザープロフィールとリレーションシップチェーン
メッセージ管理
グループシステム
Official Account
Audio/Video Call
使用制限
購入ガイド
課金概要
価格説明
Purchase Instructions
Renewal Guide
支払い延滞説明
Refund Policy
ダウンロードセンター
SDK & Demo ソースコード
更新ログ
シナリオプラン
Live Streaming Setup Guide
AI Chatbot
極めて大規模なエンターテインメントコラボレーションコミュニティ
Discord実装ガイド
ゲーム内IM統合ガイド
WhatsApp Channel-style Official Account Integration Solution
Send Red Packet
Firewall Restrictions
クライアントAPIs
SDK API(Web)
Android
iOS & macOS
Swift
Flutter
SDK API(Electron)
SDK APIs (Unity)
SDK API(React Native)
C APIs
C++
サービス側 APIs
UserSigの生成
RESTful APIs
Webhooks
コンソールガイド
New Console Introduction
アプリケーションの作成とアップグレード
基本設定
機能設定
アカウント管理
グループ管理
Official Channel Management
コールバック設定
監視ダッシュボード
Viewing Guide for Resource Packages
Real-Time Monitor
補助ツールの開発
アクセス管理
Advanced Features
よくあるご質問
uni-app FAQs
 購入に関する質問
SDKに関する質問
アカウント認証に関する質問
ユーザープロファイルとリレーションシップチェーンに関する質問
メッセージに関する質問
グループに関する質問
ライブ配信グループに関する質問
ニックネームプロフィール画像に関連した問題
一般的なリファレンス
Service Level Agreement
セキュリティコンプライアンス認証
IM ポリシー
プライバシーポリシー
データプライバシーとセキュリティ契約
エラーコード
お問い合わせ

iOS

フォーカスモード
フォントサイズ
最終更新日: 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 premium 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 the TUICore component, within the TUIConfig file, a switch for the "User Online Status" feature, named displayOnlineStatusIcon, is provided. Its type is BOOL, with the default value of NO.
To enable the chat list to display user online status, first subscribe to the premium package, then turn on the user status feature switch in the Chat console, and change the default value of displayOnlineStatusIcon to YES, or call the following method before initializing the chat page.
Swift
Objective-C
TUIConfig.default().displayOnlineStatusIcon = true
[TUIConfig defaultConfig].displayOnlineStatusIcon = YES;

Display Effect

Chat List

Enabling "Show User Online Status"
Disabling "Show User Online Status"



Contacts List

Enabling "Show User Online Status"
Disabling "Show User Online Status"



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 premium package.
The "User Online Status" feature is only supported by the premium 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 premium 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.



ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック