Skip to main content
Data source management is one of the core functions of WuKongIM HarmonyOS SDK, responsible for handling key business logic such as file upload/download, conversation sync, channel information retrieval, and message sync.

File Management

When sending custom attachment messages, the message sent to the recipient is a network address, not the actual file. In this case, we need to listen for attachment uploads.

File Upload

Complete File Upload Management Example

File Download

The SDK will not actively download message attachments. When receiving messages with attachments, the app needs to download them as needed. After the app completes the download, it can change the local file address to avoid repeated downloads.

Recent Conversation Data Source

Sync Recent Conversation Data Source

Channel Information Data Source

Channel Member Data Source

Channel Member Pagination Data Source

Channel Message Data Source

Complete Data Source Manager

Next Steps

Advanced Features

Explore custom messages and advanced features

Conversation Management

Return to conversation management functionality

Channel Management

Return to channel management functionality

Message Management

Return to message handling functionality