A Tencent Cloud account can create a maximum of 300 Chat apps, after which you need to disable and delete an unwanted app before creating a new one. Once an app (along with its SDKAppID) is deleted, the service it provides and all its data are lost. Proceed with caution.
2. Click Create Application, enter your app name, and click Confirm.
3. After creation, you can see the status, service version, SDKAppID, creation time, tag, and expiry time of the new app on the overview page of the console. Record the SDKAppID.
Step 2. Obtain key information
1. Click the app to go to its basic configuration page.
2. In the Basic Information area, click Display key, and then copy and save the key information.
Note:
Make sure you keep your key information properly secure to prevent disclosure.
To respect the copyright of emoji designs, the Chat Demo/TUIKit project does not include cutouts of large emoji elements. Please replace them with your own designs or other emoji packs for which you hold the copyright before officially launching for commercial use. The default smiley face emoji pack shown below is copyrighted by Tencent RTC and is available for licensed use for a fee. If you need to obtain a license, please contact us.
2. Find and open /IM_Demo/Source/debug/include/DebugDefs.h.
3. Set parameters in DebugDefs.h as follows:
Note:
In this document, the method to obtain UserSig is to configure a SECRETKEY in the client code. In this method, the SECRETKEY is vulnerable to decompilation and reverse engineering. Once your SECRETKEY is disclosed, attackers can steal your Tencent Cloud traffic. Therefore, this method is only suitable for locally running a demo project and feature debugging.
The correct UserSig distribution method is to integrate the calculation code of UserSig into your server and provide an application-oriented API. When UserSig is needed, your application can send a request to the business server for a dynamic UserSig. For more information, see Generating UserSig on the Server.
Step 4. Compile, package, and run the project
1. Double-click to open /IM_Demo/IM_Demo.uproject.
2. Compile, run, and test the project.
macOS
Windows
iOS
Android
File -> Package Project -> Mac
File -> Package Project -> Windows -> Windows(64-bit)