Update from v2.x to v4.0
Check the information below when updating the Airbridge Cordova-Ionic SDK to v4.0.List of all changes
SDK installation and initialization
The key values of airbridge.json have been changed. Change the key values as follows.
iOS
The
AirbridgeCO.getInstance function in iOS has been replaced with the AirbridgeCordova.initializeSDK function. Modify the ios/YOUR_PROJECT_NAME/AppDelegate.m file.
AirbridgeCO.init function has been released with the AirbridgeCordova.initializeSDK function. Modify the android/app/src/main/java/.../MainApplication.kt file.
Deep Linking
TheAirbridge.setDeeplinkListener function has been replaced with the Airbridge.setOnDeeplinkReceivedfunction.
AirbridgeCO.deeplink.handleURLSchemeDeeplink , AirbridgeCO.deeplink.handleUserActivity functions in iOS has been replaced with the AirbridgeCordova.trackDeeplink function.
AirbridgeCO.processDeeplinkData function has been replaced with the AirbridgeCordova.trackDeeplinkfunction.
In-app events and user data
Attention
Airbridge.event.trackEvent function has been deleted.
The parameters of the Airbridge.trackEvent function has been modified. The action, label, value parameters can be defined within the semanticAttributes.
Refer to the example codes below to use the Airbridge.trackEvent function.
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 , Airbridge.state.updateUser function has been replaced with Airbridge.setUser related functions. The setUser and updateUser functions have been deprecated.
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 function.
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 Cordova-Ionic SDK.v2.6.0
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.5.0 to v2.5.2.v2.5.0
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.pagewill still be supported and functioning for backward compatibility.
v2.4.0
The default value fortrackingAuthorizeTimeout has been changed to 30 seconds.