Update to v4.5.0
When upgrading to Airbridge Unity v4.5.0, the intent filter for Android deep link setup will be moved from/Assets/Plugins/Android/AndroidManifest.xml to /Assets/Plugins/Android/Airbridge.androidlib/AndroidManifest.xml. You need to manually remove the intent filter within the /Assets/Plugins/Android/AndroidManifest.xml.
Update from v1.x to v4.0
Check the information below when updating the Unity SDK to v4.0.List of all changes
List of all changes
SDK installation and initialization
AttentionWhen updating the Airbridge Unity SDK from v1.x.x to v4.0.0, remove the previously imported folders listed below before adding the Airbridge Unity SDK v4.0.0 package.
Assets/AirbridgeAssets/Plugins/Airbridge
Assets/Airbridge/Resources/AirbridgeData.asset have been changed. Change the key values as follows.
The
AirbridgeUnity.StartTracking function has been replaced with the Airbridge.StartTracking function.
AirbridgeUnity.StopTracking function has been replaced with the Airbridge.StopTracking function.
Deep Linking
TheAirbridgeUnity.SetDeeplinkCallback function has been replaced with the Airbridge.SetOnDeeplinkReceived function.
AirbridgeUnity.processDeeplinkData function has been replaced with the AirbridgeUnity.processHandleDeeplink function.
Set up custom domain
In version 1.x, only one custom domain could be specified, but starting from version 4.0, multiple custom domains can be entered.In-app event and user data
AttentionPlease enter the value into
AirbridgeAttribute.VALUE instead of the existing AirbridgeEvent.SetTotalValue.The logic where totalValue overwrites value if totalValue is used and value is defined has been removed from Unity SDK v4.0.0.AirbridgeUnity.TrackEvent function has been replaced with the Airbridge.TrackEvent function.
Replace the AirbridgeUnity.TrackEvent function to Airbridge.TrackEvent function following the example code below.
AttentionThe
AirbridgeEvent class has been removed.The first parameter of the Airbridge.TrackEvent function must include category information contained in the AirbridgeEvent constructor.The second parameter of the Airbridge.TrackEvent function must include values from AirbridgeEvent.SetAction, AirbridgeEvent.SetLabel, AirbridgeEvent.SetValue, and Semantic Attributes.The third parameter of the Airbridge.TrackEvent function must include values from the Custom Attributes.AirbridgeUnity.SetUser function has been replaced with the Airbridge.SetUser related functions. The SetUser function is no longer supported.
Additional settings
TheAirbridgeUnity.ImpressionTrackingLink function has been replaced with the Airbridge.Impression function.
AirbridgeUnity.ClickTrackingLink function has been replaced with the Airbridge.Click function.
AirbridgeUnity.SetOnAttributionReceived function has been replaced with the Airbridge.SetOnAttributionReceived function.
Device Alias
Activation status of the Airbridge SDK
AirbridgeUnity.CreateWebInterface function has been replaced with the Airbridge.CreateWebInterfaceScript, Airbridge.HandleWebInterfaceCommand function.