Update from v3.x to v4.0
Check the information below after updating the Airbridge Flutter SDK to v4.0.SDK installation and initialization
The location ofairbridge.json has been changed. Move the assets/airbridge.json file to the airbridge.json file at the top of the Flutter project folder.
The key values of airbridge.json have been changed. Change the key values as follows.
The
AirbridgeFlutter.init function in iOS has been replaced with the AirbridgeFlutter.initializeSDK function. Modify the ios/YOUR_PROJECT_NAME/AppDelegate.swift file.
AirbridgeFlutter.init function in Android has been replaced with the AirbridgeFlutter.initializeSDK function. Modify the android/app/src/main/java/.../MainApplication.kt file.
Deep Linking
TheAirbridge.setDeeplinkListener function has been replaced with the Airbridge.setOnDeeplinkReceived function.
AirbridgeFlutter.deeplink.handleURLSchemeDeeplink and the AirbridgeFlutter.deeplink.handleUserActivity functions have been replaced with the AirbridgeFlutter.trackDeeplink function.
AirbridgeFlutter.processDeeplinkData function has been replaced with the AirbridgeFlutter.trackDeeplink function.
AttentionFrom Flutter SDK v.3.7, the deep linking feature has been improved to handle deep links directly within the app without external plugins.However, the following actions are required for each platform to prevent malfunction.
- Android: Include
<meta-data android:name="flutter_deeplinking_enabled" android:value="false" />in the AndroidManifest.xml file. - iOS: Set the
FlutterDeepLinkingEnabledkey’s value asNOin the Info.plist file.
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 thetrackingLinkCustomDomainsin the airbridge.json during Airbridge SDK initialization.
In-app events and user data
AttentionPlease input the value into
AirbridgeAttribute.VALUE instead of the existing AirbridgeAttributes.TOTAL_VALUE.If you’re using AirbridgeAttributes.TOTAL_VALUE and defining a value, the logic that AirbridgeAttributes.TOTAL_VALUE overwrites the value has been removed from Flutter SDK v4 onwards.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.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
TheAirbridge.setAttributionListener function has been replaced with the Airbridge.setOnAttributionReceived function.
Airbridge.placement.click , Airbridge.placement.impression functions have been replaced with the Airbridge.click , Airbridge.impression functions.
Airbridge.createWebInterface function has been replaced with the Airbridge.createWebInterfaceScript , Airbridge.handleWebInterfaceCommand functions.
Update within v3.x
See the major changes in each version of the Flutter SDK.v3.5.0 - Deep Link
For apps registered with Airbridge after September 4, 2023, an issue where the deep link URL provided in the deep link callback was decoded twice from the content entered in the Airbridge dashboard has been resolved. This issue was found in versions v3.4.2 to v3.4.7.v3.4.2 - Deep Link
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 v3.4.2, 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 v3.4.2, we recommend writing code using the deep link domain, abr.ge.
deeplink.pagewill still be supported and functioning for backward compatibility.
v3.4.1 - kotlin
The Kotlin plugin version has been updated to 1.5.21.v3.4.0 - User privacy
The default value oftrackingAuthorizeTimeout has been changed to 30 seconds.