Redirecting users from Coda Links back to your app
Guide for iOS App
If you are redirecting users from Coda Links back to your iOS App, please refer to the guide below for the optimal setup.
Option 1 (Recommended): Set up a Universal Link
Step 1: Enable Associated Domains in your Apple Developer account
In Apple Developer, create or edit your App Identifier and enable Associated Domains.
Note your Team ID and Bundle ID — together they form the App ID you will declare in the next step in
apple-app-site-associationfile
Step 2: Create and host apple-app-site-association file in your website domain
Define the file content using your App ID (Team ID + Bundle ID) and the URL paths you want to use in your redirect URL. For example, you want to have 2 URL paths to handle back-to-app landing for payment success and payment pending scenarios separately, namely:
https://<your-domain>/payments/successandhttps://<your-domain>/payments/pending, then your file content should be as follows:
{
"applinks": {
"details": [
{
"appIDs": ["KV7GMR96XX.com.coda.outlinkdemo"],
"components": [
{ "/": "/payments/success", "?", "*", "comment": "Match success redirect URL" },
{ "/": "/payments/pending", "?", "*", "comment": "Match pending redirect URL" }
]
}
]
}
}Save the file is saved exactly as
apple-app-site-association(without an extension)Place it in your site’s
.well-knowndirectory, and make sure it is public. The file’s URL should match the following format:
Step 3: Add Associated Domains entitlements in Xcode:
In Signing & Capabilities tab in Xcode, add Associated Domains capability:

Then, click + to register your domain with the applinks: prefix, such as:
For full instructions, refer to Apple's page here
Step 4: Provide the Universal Links to Coda
If you are using Coda Links to Coda-hosted Payment Page: you can set the Universal Links you have successfully configured in Coda Portal, and Coda Links will redirect your users there automatically

If you are using Coda Links to Coda Webstore: please reach out to your Account Manager or our Technical Support team (partnersupport@coda.co) to provide the Universal Links. We will help you set them up in your Webstore.
Step 5: Handle Universal Links in your app
Now you can add instructions in your app to display the right screen to the user when they open the Universal Links. For example, when user lands with https://<your-domain>/payments/success , you can grant them the in-game item and display a purchase success screen with confetti animations!
Option 2 (Not recommended): Set up a Custom URL Scheme
Step 1: Register the URL scheme in Info.plist
Add your custom scheme under CFBundleURLTypes
Example:
Step 2: Handle the scheme in the app
Guide for Android App
If you are working on redirecting users from Coda Links back to your Android App, please refer to the guide below for the optimal setup.
Last updated