Skip to content

Troubleshooting guide

This guide provides solutions to the problems that occur when using marketing attribution features.

Resolving Android Manifest conflicts when using AppsFlyer and Airbridge together

Android

When using AppsFlyer and Airbridge together, if you encounter an automatic backup rule error related to android:fullBackupContent, resolve the conflict using the method below.

First, create a file named game_custom_backup_rules.xml in the res/xml folder and add the code below. The filename can be changed arbitrarily.

<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
    <exclude domain="sharedpref" path="appsflyer-data"/>
    <exclude domain="sharedpref" path="airbridge-internal" />
    <exclude domain="sharedpref" path="airbridge-install" />
    <exclude domain="sharedpref" path="airbridge-user-info" />
    <exclude domain="sharedpref" path="airbridge-user-alias" />
    <exclude domain="sharedpref" path="airbridge-user-attributes" />
    <exclude domain="sharedpref" path="airbridge-device-alias" />
    <exclude domain="database" path="airbridge.db" />
</full-backup-content>

After that, add the following code to the AndroidManifest.xml file.

<application
   android:fullBackupContent="@xml/game_custom_backup_rules"
   tools:replace="android:fullBackupContent"

If you do not want automatic backups in any case, set android:fullBackupContent="false" as shown in the code below.

<application
   android:fullBackupContent="false"
   tools:replace="android:fullBackupContent"

Unreal

When using AppsFlyer and Airbridge together, if you encounter an automatic backup rule error related to android:fullBackupContent, please resolve the conflict using the method below.

First, create a new XML file in the /Plugins/HIVESDK/Source/HIVESDK/ThirdParty/android/resource/res/xml folder and add the code below. Here, as an example, we created the game_custom_backup_rules.xml file.

<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
    <exclude domain="sharedpref" path="appsflyer-data"/>
    <exclude domain="sharedpref" path="airbridge-internal" />
    <exclude domain="sharedpref" path="airbridge-install" />
    <exclude domain="sharedpref" path="airbridge-user-info" />
    <exclude domain="sharedpref" path="airbridge-user-alias" />
    <exclude domain="sharedpref" path="airbridge-user-attributes" />
    <exclude domain="sharedpref" path="airbridge-device-alias" />
    <exclude domain="database" path="airbridge.db" />
</full-backup-content>

After that, please set it as shown in the image below in Project Settings > Platforms > Android > Advanced APK Packaging > Extra Tags for application node.

   android:fullBackupContent="@xml/game_custom_backup_rules"
   tools:replace="android:fullBackupContent"


If you do not want automatic backup, set it as shown in the image below.

   android:fullBackupContent="false"
   tools:replace="android:fullBackupContent"

Note
  • When using Unreal Engine 4, add the following code to Project Settings > Platforms > Android > Advanced APK Packaging > Extra Tags for node.

xmlns:tools="http://schemas.android.com/tools"