2. Install the Airflux SDK
Last updated
Last updated
By installing the Airflux SDK in your app, you can collect in-game data required for Airflux's model training. The installation and setup will take approximately 5 minutes.
Follow the steps below to add the Airbridge SDK package file to your project.
Download the latest version of the.
Import the package file by selecting the menu option [Assets]>[Import Package]>[Custom Package].
When the import is complete, the [Airflux] tab will appear in the top menu bar of the Unity Editor.
The SDK initializes automatically every time your app is opened.
Select [Airflux]>[Airflux Settings] from the top menu bar in the Unity Editor and configure the keys as listed below.
App Name
Required
string
-
Input the App Name from the Airbridge dashboard.
App Token
Required
string
-
Input the SDK Token from the Airbridge dashboard.
Log Level
Optional
string
warning
Set the log level for the Airflux SDK. Choose from debug
, info
, warning
, error
, fault
.
Session Timeout Seconds
Optional
double
300
The default value is 300 seconds. Modify if needed.
Country Allowlist
Required
array
[ ]
Set the countries where calling the Airflux's inference API should be allowed. Use country codes following the ISO 3166-1 alpha-2 format (e.g., US, KR). You can set multiple countries using the Country Allowlist array. An empty array []
means no country is allowed.
Auto Start Tracking Enabled
Optional
boolean
false
Set whether to collect events automatically upon SDK initialization.
- true
: Event collection starts automatically upon initialization.
- false
: Event collection starts upon calling the Airflux.StartTracking()
function.
SDK Enabled
Optional
boolean
false
Set whether to enable the SDK upon initialization.
- true
: The SDK is initialized in active mode.
- false
: The SDK is initialized in inactive mode and is enabled upon calling theAirflux.EnableSDK()
function.
Currently, Airflux cannot be used in environments where ADID collection is not allowed. For further discussion or support regarding the use of Airflux in environments with ADID collection restrictions, such as children's apps, contact us at .
If the kotlinx-coroutines-core library version is 1.3.5 or later, .