Skip to main content

Fetch

AndroidiOS
If you are using Unreal Engine, please refer to Unreal Engine SDK's Fetch here.

Fetch cached DeepLink data from the SDK.

Timing for calling Fetch function:

  • 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.
  • 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 data cached by the SDK will be cleared.

Function definition

public static string Fetch();

Code sample

string deeplinkret = INTLAPI.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"
}
}