SDK Installation
Package Installation
Installairbridge-expo-sdk and airbridge-react-native-sdk using npm.
AttentionAirbridge Expo SDK does not support
expo go environments. Please use it with expo prebuild or eas build.Project Setup
app.json
Add following setting to yourapp.json file.
app.json
APP_NAME is the App Name and APP_TOKEN is the App SDK Token that can be found on the [Settings]>[Tokens] page in the Airbridge dashboard.airbridge.json
- Create an
airbridge.jsonfile in the project folder. - Configure settings in JSON format.
Example
Description
Testing the SDK
Check if install events are sent when the application is installed and opened.Check in the Airbridge Dashboard
Events from the Airbridge SDK are shown at the “Airbridge Dashboard → Raw Data → App Real-time Logs”.- Go to “Airbridge Dashboard → Raw Data → App Real-time Logs”.
- Search for the device’s ADID (IDFA, IDFV, GAID).
AttentionLogs may be delayed for up to 5 minutes.
Deep Link Setup
Dashboard Setup
Please refer to the guides below to setup your deep links in the Airbridge dashboard.Project Setup
app.json
Add the following settings to yourapp.json file.
YOUR_SCHEME is the URI Scheme that can be found on the [Tracking Link]>[Deep Links] page in the Airbridge dashboard.setDeeplinkListener
Register a function that will be called whenever a deep link or a deferred deep link opens the application.AttentionIf you call
setDeeplinkListener multiply, only last listener will receive deeplink.Custom Domain Setup (Optional)
app.json
Add the following settings to yourapp.json file.
YOUR_DOMAIN.YOUR_DOMAIN.example can be found at the “Airbridge dashboard → Tracking Link → Domain Setting → Custom Domain”.Test Deep Link
Click on your URI scheme to test if your deep link has been properly set up in the Airbridge SDK.YOUR_SCHEME://
User Setup
Please refer to this guide.
Device Setup
Please refer to this guide.
Event Setup
Please refer to this guide.
Advanced Setup
SDK Signature Setup
Protection against SDK spoofing is possible once you set your SDK Signature. This feature is available for the Airbridge Expo SDK v2.2.0 and Airbridge React Native SDK v2.3.0 and above. Add the following lines in the airbridge.json file.The SDK Signature Credentials are required for the SDK Signature setup. Refer to this article to learn how to create them.
Other Advanced Settings
Please refer to this guide.Troubleshooting
expo-route
If you are already using the expo-route, it will not work after installing the SDK. When entering the app through the Airbridge tracking link, the link you entered must be converted to a scheme deeplink through Airbridge and then routed. However, due to the expo-router, routing may be processed in the wrong direction such as duplication, wrong movement, etc. Therefore, the Airbridge Expo SDK has been designed to route the Deeplink. Please process it to route in theairbridge.deeplink.setDeeplinkListener as in the following code.
Webcredentials
If you use the Autofill feature in the App to save passwords, and if thewebcredentials:... setting is not set, the password will be saved in the domain of applinks:YOUR_APP_NAME.airbridge.io or applinks:YOUR_APP_NAME.abr.ge.
If you want to change the domain where the password is saved, please replace example.com with the domain you want to set as shown below.
https://example.com/.well-known/apple-app-site-associationThe following content is hosted at the address.
- Please add
webcredentials:example.comtoapp.json.
Migration guide
When updating the SDK, please consider the contents corresponding to the versions between `previous version` and `subsequent version`.
2.6.0
For Airbridge apps created after September 4, 2023, the issue where the deep link URL provided in the deep link callback decodes the content entered in the Airbridge dashboard twice has been resolved in versions v2.5.0 ~ v2.5.2.2.5.1
For Airbridge apps created after September 4, 2023, the deep link URL provided in the deep link callback no longer adds the airbridge_referrer. When updating the iOS app, it is determined by the last calculated SKAdNetwork Conversion Value and no additional calculations are made.- In versions below 2.5.1, the SKAdNetwork Conversion Value is calculated for up to 24 hours only.
- This will not be a problem for new installs.
deeplink.page has been deprecated. From version 2.5.1, we recommend writing code using the deep link domain abr.ge
deeplink.pageis still supported and operates for backward compatibility.