Skip to main content
This article contains the information required to update the Airbridge React Native SDK. We recommend checking the information regarding all versions.

Update from v2.x to v4.0

Check the information below when updating the Airbridge React Native SDK to v4.0.

Option

Function (React Native)

Constant (React Native)

Function (iOS)

Function (Android)

SDK installation and initialization

The key values of airbridge.json have been changed. Change the key values as follows. The AirbridgeRN.getInstance function in iOS has been replaced with the AirbridgeReactNative.initializeSDK function. Modify the ios/YOUR_PROJECT_NAME/AppDelegate.m file.
The AirbridgeRN.init function in Android has been replaced with the AirbridgeReactNative.initializeSDK function. Modify the android/app/src/main/java/.../MainApplication.kt file.
The Airbridge.setDeeplinkListener function has been replaced with the Airbridge.setOnDeeplinkReceived function.
In iOS, the AirbridgeRN.deeplink.handleURLSchemeDeeplink , AirbridgeRN.deeplink.handleUserActivity functions have been replaced with the AirbridgeReactNative.trackDeeplink function.
In Android, the AirbridgeRN.deeplink.processDeeplinkData function have been replaced with the AirbridgeReactNative.trackDeeplink function.

Set up custom domain

The method of specifying custom domain URLs in used in version 2.x, has been changed. You can now add custom domain links to the trackingLinkCustomDomainsin the airbridge.json during Airbridge SDK initialization.

In-app events and user data

The function Airbridge.event.trackEvent has been replaced with Airbridge.trackEvent. Please change the function Airbridge.event.trackEvent to Airbridge.trackEvent following the example code below.
AttentionThe action , label , value , semanticAttributes values, which are in the second parameter of the Airbridge.event.trackEvent function must be included in the second parameter of the Airbridge.trackEvent function.The customAttributes value, which is the second parameter of the Airbridge.event.trackEvent function must be included in the third parameter of the Airbridge.trackEvent function.
The functions Airbridge.state.setUser and Airbridge.state.updateUser have been replaced with the Airbridge.setUser related functions. The setUser , updateUser functions, which set user information all at once, are no longer supported.

Additional settings

The Airbridge.setAttributionListener function has been replaced with the Airbridge.SetOnAttributionReceived function.
The Airbridge.placement.click , Airbridge.placement.impression functions have been replaced with the Airbridge.click , Airbridge.impression functions.
The Airbridge.createWebInterface function has been replaced with the Airbridge.createWebInterfaceScript , Airbridge.handleWebInterfaceCommand functions.

Update within v2.x

See the major changes in each version of the React Native SDK. For apps registered with Airbridge after September 4, 2023, the “airbridge_referrer” will no longer be added to the deep link URL provided in the deep link callback. This issue was found in versions v2.7.3 to v2.5.1. For apps registered with Airbridge after September 4, 2023, the “airbridge_referrer” will no longer be added to the deep link URL provided in the deep link callback. In the case of an iOS app update, the last calculated SKAdNetwork Conversion Value is finalized. No additional calculations are processed.
  • In versions earlier than v2.5.1, the SKAdNetwork Conversion Value is only calculated for up to 24 hours.
  • This does not affect users who newly installed the app.
deeplink.page has been deprecated. From v2.5.1, we recommend writing code using the deep link domain, abr.ge.
  • deeplink.page will still be supported and functioning for backward compatibility.

v2.5.0 - User privacy

The default value for trackingAuthorizeTimeout has been changed to 30 seconds.