Skip to main content
The event API has been replaced to the below.
Refer to the Cordova 2.X.X migration guide for details.
An error like below may occur when creating iOS builds with Cordova Ionic PhoneGap SDK v2.0.1+.
Since Cordova Ionic PhoneGap SDK v2.0.1+ uses Airbridge iOS SDK v1.28.0+, Bitcode is no longer supported. Please refer to the Bitcode compile error guide for more details.
Uninstall the old version of the Airbridge SDK.Cordova: cordova plugin remove airbridge-cordova-sdkIonic: ionic cordova plugin remove airbridge-cordova-sdkPhoneGap: phonegap plugin remove airbridge-cordova-sdkInstall the new version of the Airbridge SDK.Cordova: cordova plugin add airbridge-cordova-sdkIonic: ionic cordova plugin add airbridge-cordova-sdkPhoneGap: phonegap plugin add airbridge-cordova-sdk
Android
Modify android/app/src/main/java/.../MainActivity as below.
iOS
Modify ios/[Project Name]/AppDelegate as below.
Settings
  1. Add an airbridge.jsonfile to the project folder.
  2. Add the parameters shown in the example below in JSON format.
Example
Description
Install
Uninstall the old version of the Airbridge SDK.Cordova: cordova plugin remove airbridge-cordova-sdkIonic: ionic cordova plugin remove airbridge-cordova-sdkPhoneGap: phonegap plugin remove airbridge-cordova-sdkInstall the new version of the Airbridge SDK.Cordova: cordova plugin add airbridge-cordova-sdkIonic: ionic cordova plugin add airbridge-cordova-sdkPhoneGap: phonegap plugin add airbridge-cordova-sdksetDeeplinkListenerRemove the getInitialDeeplink function and use the setDeeplinkListener function only.
Android
AndroidManifest.xmlIn the MainActivity section of the android/app/src/main/AndroidManifest.xml file, add intent-filter parameters as below.
MainActivity.java
Modify android/app/src/main/java/.../MainActivity.java as below.
iOS
Universal Link
  1. Go to “Xcode → Project file → Signing & Capabilities”.
  2. Click ”+ Capability” and add “Associated Domains”.
  3. Add applinks:YOUR_APP_NAME.deeplink.pageto “Associated Domains”.
YOUR_APP_NAME can be found at the “Airbridge dashboard → Settings → Tokens → App Name”. AppDelegate.mModify ios/.../AppDelegate.m as below.
When targeting iOS 8.x or earlier, also make the following changes.