For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Summary of requirements:

To support universal links you need to:

  1. Create a two-way association between your app and your website and specify the URLs that your app handles, as described in Supporting associated domains.

  2. Update your app delegate to respond to the user activity object the system provides when a universal link routes to your app, as described in Supporting universal links in your app.

Step 1: Enable Associated Domains in your Apple Developer account

  1. In Apple Developer, create or edit your App Identifier and enable Associated Domains.

  2. Note your Team ID and Bundle ID — together they form the App ID you will declare in the next step in apple-app-site-association file

Step 2: Create and host apple-app-site-association file in your website domain

This file enables iOS to identify the redirect URL as a Universal Link, allowing your app to open automatically post-checkout. Without it, users will encounter a confirmation dialog, asking if they wish to open the app.

  1. 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/success and https://<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" }
        ]
      }
    ]
  }
}
  1. Save the file is saved exactly as apple-app-site-association (without an extension)

  2. Place it in your site’s .well-known directory, 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

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.

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!

Step 1: Register the URL scheme in Info.plist

Add your custom scheme under CFBundleURLTypes

Example:

Step 2: Handle the scheme in the app

AppDelegate (iOS ≤12)
SceneDelegate (iOS 13+)
SwiftUI

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

Was this helpful?