Braze
Airbridge supports integration with Braze. With the integration, target event attribution data are passed to Braze, allowing you to leverage the data to build personalized marketing campaigns.
Airbridge ↔ Braze Integration
For the Braze integration, it is required to set Braze SDK's Device ID as Airbridge SDK's Device Alias. After setting Device Alias and enabling Braze integration on the Airbridge dashboard, the Event collected from Airbridge SDK and attribution data will be sent to Braze via Server to Server.
Minimum SDK Version
- Airbridge Android SDK: 2.19.5
- Airbridge iOS SDK: 2.18.0
- Airbridge React Native SDK: 1.5.0
- Airbridge Cordova SDK: 2.0.2
- Airbridge Flutter SDK: 3.0.2
- Airbridge Unity SDK: 1.9.0
Integration - Android
// MainApplciation.java
@Override
public void onCreate() {
super.onCreate();
// Initialize Airbridge SDK
AirbridgeConfig config = new AirbridgeConfig.Builder("APP_NAME", "APP_TOKEN")
// Make Airbridge SDK explicitly start tracking
.setAutoStartTrackingEnabled(false)
.build();
Airbridge.init(this, config);
// Set device alias into Airbridge SDK
Airbridge.getCurrentUser().setAlias("braze_device_id", Braze.getInstance(this).getDeviceId());
// Explicitly start tracking
Airbridge.startTracking();
}
// MainApplication.kt
override fun onCreate() {
super.onCreate()
// Initialize Airbridge SDK
val config = AirbridgeConfig.Builder("YOUR_APP_NAME", "YOUR_APP_SDK_TOKEN")
// Make Airbridge SDK explicitly start tracking
.setAutoStartTrackingEnabled(false)
.build()
Airbridge.init(this, config)
// Set device alias into Airbridge SDK
Airbridge.getCurrentUser().setAlias("braze_device_id", Braze.getInstance(this).deviceId)
// Explicitly start tracking
Airbridge.startTracking()
}
Integration - iOS
// AppDelegate.swift
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]?
) {
AirBridge.setAutoStartTrackingEnabled(false)
AirBridge.getInstance("YOUR_APP_TOKEN", appName:"YOUR_APP_NAME", withLaunchOptions:launchOptions)
AirBridge.state()?.addUserAlias(withKey:"braze_device_id", value:Appboy.sharedInstance()?.getDeviceId())
AirBridge.startTracking()
}
// AppDelegate.m
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
AirBridge.autoStartTrackingEnabled = NO;
[AirBridge getInstance:@"YOUR_APP_TOKEN" appName:@"YOUR_APP_NAME" withLaunchOptions:launchOptions];
[AirBridge.state addUserAliasWithKey:@"braze_device_id" value:Appboy.sharedInstance.getDeviceId];
[AirBridge startTracking];
}
Integration - React Native
Braze.getInstallTrackingId(function (error, brazeID) {
Airbridge.state.setDeviceAlias("braze_device_id", brazeID)
Airbirdge.state.startTracking()
})
For the integration, set the 'autoStartTrackingEnabled' option from airbridge.json as 'false'.
Integration - Cordova
AppboyPlugin.getDeviceId(function (brazeID) {
Airbridge.state.setDeviceAlias("braze_device_id", brazeID)
Airbridge.state.startTracking()
})
For the integration, set the 'autoStartTrackingEnabled' option from airbridge.json as 'false'.
Integration - Flutter
BrazePlugin.getInstallTrackingId().then((brazeID) {
Airbridge.state.setDeviceAlias("braze_device_id", brazeID)
Airbridge.state.startTracking()
})
For the integration, set the 'autoStartTrackingEnabled' option from airbridge.json as 'false'.
Integration - Unity
string BrazeID = AppboyBinding.GetInstallTrackingId();
AirbridgeUnity.SetDeviceAlias("braze_device_id", BrazeID);
AirbridgeUnity.StartTracking()
For the integration, set the 'autoStartTrackingEnabled' option from Project Setup as 'false'.
Updated almost 2 years ago