Check Universal Link [MSDK Only]
[MSDK Only] Starting from MSDK V 5.11, a self-check function is added to help developers troubleshoot issues encountered during SDK integration.Currently only supported for the WeChat channel test environment.This feature cannot be used in production environments.
Supported Platforms
- Unity
- Unreal Engine
Supports
Android, iOS platform.Supports
Android, iOS platform.Function Definition
- Unity
- Unreal Engine
void CheckUniversalLink(string channel, string subChannel = "", string extraJson = "");
static void CheckUniversalLink(const std::string &channel, const std::string &subChannel = "", const std::string &extra = "{}");
Input Parameters
- Unity
- Unreal Engine
| Parameters | Type | Description |
|---|---|---|
| channel | string | Channel Name Currently only WeChat channel is supported |
| subChannel | string | Sub-channel Name |
| extraJson | string | Extended information |
| Parameters | Type | Description |
|---|---|---|
| channel | std::string | Channel Name Currently only WeChat channel is supported |
| subChannel | std::string | Sub-channel Name |
| extra | std::string | Extended information |
Callback Handling
The callback processing interface is GUABaseResultObservers.The callback data structure is GUABaseResult.
- Unity
- Unreal Engine
The callback event is LoginBaseResultEvents. The callback methodID is GUA_ACCOUNT_CHECK_UL.
Callback event is OnLoginResultNotify. Callback ID is kMethodIDAccountCheckUI.
Code Example
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().CheckUniversalLink("WeChat");
GUA_NAMESPACE::GUAAccountService::CheckUniversalLink("WeChat");