Skip to main content

Fetch

AndroidiOS
If you are using the Unity engine, see Fetch for Unity SDK.

Fetch cached DeepLink data from the SDK.

Timing for calling Fetch function:

  1. Call when the app starts.When the SDK acquires data, it does not know whether the engine layer has set callbacks and is ready to receive data, thus Fetch needs to be called to actively fetch the DeepLink data cached by the SDK.
  2. Call upon receiving a DeepLink callback.Receiving a DeepLink callback indicates the SDK has received DeepLink data, and Fetch should be called to obtain the latest data.
    Common scenario: app is activated through external links while running in the background.
note

After calling Fetch, the SDK's cached data will be cleared.

Function definition

static FString Fetch();

Code sample

FString url = UINTLSDKAPI::Fetch();

Return Value

The Fetch function returns a JSON string with two keys: url and params.

Example:

{
"url":"https://sdk-deeplink-confs.intlgame.com/help?d=h&a=b",
"params":{
"a":"b",
"d":"h"
}
}