Skip to content

Unreal

Hive SDK Unreal Engine provides the following steps to configure the promotion feature.

Adding the feature

  1. From the Unreal Editor menu, click Edit > Project Settings. The Project Settings window appears.
  2. In the left panel of the Project Settings window, click Dependency – Android / Dependency – iOS under Hive SDK.

  3. Under Hive Module, select Enable HivePromotion. Enable HivePromotion must be checked to use Google InApp Review in the Unreal Android environment.

Setting universal link

Universal Link is used for the initial installation and execution of the app through the invitation page and for inviter rewards.

Note

For additional console settings for generating inviter links based on Universal Link, see Promotion Operation Guide on the developer site.


Add the lines between 'Add' and 'Add End' in the Engine/Source/Programs/UnrealBuildTool/Platform/IOS/IOSExport.cs file.

Text.AppendLine( "<dict>");
Text.AppendLine( "\t<key>get-task-allow</key>");
Text.AppendLine(string.Format( "\t<{0}/>", bForDistribution ? "false": "true"));

// Add
Text.AppendLine( "\t<key>com.apple.developer.associated-domains</key>");
Text.AppendLine( "\t<array>");

/*
Add an inviter link based on Universal Link

The following is an example used in the Hive SDK sample app.
Text.AppendLine("\t\t<string>applinks:hiveota.withhive.com</string>");
Text.AppendLine("\t\t<string>applinks:dev-promotion.qpyou.cn</string>");
Text.AppendLine("\t\t<string>applinks:promotion.qpyou.cn</string>");
Text.AppendLine("\t\t<string>applinks:sandbox-promotion.qpyou.cn</string>");
Text.AppendLine("\t\t<string>applinks:test-promotion.qpyou.cn</string>");
*/

Text.AppendLine( "\t</array>");

/* This item is required to log in to Game Center on iOS 17 or later.
Text.AppendLine("\t<key>com.apple.developer.game-center</key>");
Text.AppendLine("\t<true/>");
*/

// Add End
if (bCloudKitSupported) {
    if (iCloudContainerIdentifiersXML != "")
Text.AppendLine( "<dict>");
Text.AppendLine( "\t<key>get-task-allow</key>");
Text.AppendLine(string.Format( "\t<{0}/>", bForDistribution ? "false": "true"));

// Add
Text.AppendLine( "\t<key>com.apple.developer.associated-domains</key>");
Text.AppendLine( "\t<array>");

/*
Add an inviter link based on Universal Link 

The following is an example used in the Hive SDK sample app.
Text.AppendLine("\t\t<string>applinks:hiveota.withhive.com</string>");
Text.AppendLine("\t\t<string>applinks:dev-promotion.qpyou.cn</string>");
Text.AppendLine("\t\t<string>applinks:promotion.qpyou.cn</string>");
Text.AppendLine("\t\t<string>applinks:sandbox-promotion.qpyou.cn</string>");
Text.AppendLine("\t\t<string>applinks:test-promotion.qpyou.cn</string>");
*/

Text.AppendLine( "\t</array>");

// Add End
if (bCloudKitSupported) {
    if (iCloudContainerIdentifiersXML != "")