Initialization
Before using other SDK features, you must complete initialization. This document details the initialization methods.
Notes
- The initialization method must be called once during the application lifecycle.
Preparing App Key
You need a valid App Key to initialize the SDK.
Log in to the RC Console and navigate to Service Management to view the App Keys of your created applications.
If you manage multiple applications, ensure you select the correct application name (labeled as ① in the image below). Additionally, each RC application provides separate App Key/Secret pairs for isolating production and development environments. When obtaining the App Key, verify the environment (Production/Development, labeled as ② below).
- If you're not the application creator, we recommend confirming that the displayed data center matches expectations when obtaining the App Key.
- If you haven't applied for application activation with RC, only the development environment is available.

Pre-Initialization Requirements
Certain configurations must be completed before initialization; otherwise, SDK functionality may not work properly.
- Enable RTC Services: RTC services require manual activation. Enable the corresponding RTC service based on your application's business type. For details, see [Enable RTC Services].
- Global Data Center: Since RTC services rely on the IMLib SDK for signaling channels, if your application uses a global data center, you must modify the default IMLib SDK service address to the global data center address before initialization. Otherwise, the SDK defaults to connecting to the China (Beijing) Data Center. For details, see Configure Global Data Center Service Address.