Skip to content

Unreal

These are the instructions for setting up the Hive SDK Unreal marketing attribution.

Unreal Editor settings

In the Unreal environment, you can automatically create and assign configuration values in hive_config.xml using the Unreal Editor. Follow the instructions below to configure the settings for using Hive. When you change the settings, the Unreal Editor values will be automatically saved, and the values of the files that store the settings (hive_config.xml, etc_string.xml, GooglePlayAppID.xml) will also be automatically saved to reflect the changes. If the configuration file does not exist, the Hive SDK will automatically create it. You can find the file in the following location:


  • Android: ;/Plugins/HIVESDK/Source/HIVESDK/ThirdParty/android/resource/res/raw
  • iOS: ;/Plugins/HIVESDK/Source/HIVESDK/ThirdParty/iOS/resource


To configure the hive_config.xml file, first click Edit > Project Settings from the Unreal Editor menu. The Project Settings window will appear on the screen. In the left panel of the Project Settings window, click the HIVEConfig XML menu under the Plugin title. The HIVEConfig XML settings screen will appear.


In the HIVEConfig XML screen, change the settings according to the following instructions.


 

HiveConfig Mobile App Tracking Settings: Enter the configuration values for the marketing attribution to be used. Enter the AppID, key, or token value issued from the marketing attribution dashboard to be used.

Add marketing attribution

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

  3. Select only the attributions you want to use from Analytics.

Attribution-specific settings

Additional settings are required depending on the attribution.

Resolving Singular library conflicts

This is the configuration for using Singular attribution. The following code modification is required to use the Singular external library included in the Hive SDK properly.

  1. Go to /Engine/Build/Android/Java/src/com/android/vending/licensing.
  2. Delete the following files.
    • ILicensingService.aidl
    • ILicenseResultListener.aidl

Adding essential Firebase files

When using Firebase, you need to download the essential files from the Firebase Console and add them to your development project.

Android

Register your app in the Firebase Console and download the google-services.json file. Then, specify the path to the downloaded file in FirebaseAnalytics File(google-services.json) Path.

iOS

This is the configuration for using Firebase Analytics attribution. Register your app on the Firebase Console and place the issued GoogleService-Info.plist file in /Plugins/HIVESDK/Source/HIVESDK/ThirdParty/iOS/resource.