This document describes how to quickly run the IM demo for Unreal Engine.
Note:Currently, the demo can be run on Windows, macOS, iOS, and Android.
Unreal Engine 4.27.1 or later.
Platform | Environment |
---|---|
Android | |
iOS & macOS | |
Windows |
You have signed up for a Tencent Cloud account and completed identity verification.
Note:If you already have an app, record its SDKAppID and obtain key information.
A Tencent Cloud account can create a maximum of 300 IM apps. If you want to create a new app, disable and delete an unwanted app first. Once an app (along with its SDKAppID) is deleted, the service it provides and all its data are lost. Proceed with caution.
Note:Please store the key information properly to prevent disclosure.
/IM_Demo/Source/debug/include/DebugDefs.h
.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 ofUserSig
into your server and provide an application-oriented API. WhenUserSig
is needed, your application can send a request to the business server for a dynamicUserSig
. For more information, see Generating UserSig on the Server.
/IM_Demo/IM_Demo.uproject
.For more information on APIs, see API Overview.
Close the project in UE4, open CMD, and run the following commands:
adb shell
cd sdcard
ls (you should see the UE4Game directory listed)
rm -r UE4Game
Compile your project again.
Was this page helpful?