Ask Your Question
1

How can I set up a subdomain for Apple app site association?

asked 2022-08-08 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
3

answered 2022-12-28 18:00:00 +0000

bukephalos gravatar image

To set up a subdomain for Apple app site association, follow these steps:

  1. Log in to your domain registrar and navigate to the domain management dashboard.

  2. Add a new DNS record for the subdomain you want to use for the app site association file. The record should be a CNAME record that points to the root domain.

For example, if your main domain is example.com and you want to use the subdomain apps.example.com for the app site association file, the CNAME record should look like this:

apps CNAME example.com

  1. Once the DNS record has propagated, create a new file called apple-app-site-association and save it in the root directory of the subdomain. The file should contain the JSON object with your app's details.

For example:

{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "TEAMID.BUNDLEID",
                "paths": [ "/path-to-content/*", "*" ]
            }
        ]
    }
}

Replace TEAMID and BUNDLEID with the respective values for your app.

  1. Upload the file to the root directory of the subdomain using an FTP client or through your website's file manager.

  2. Verify that the app site association file is accessible by visiting https://apps.example.com/apple-app-site… in a web browser. The file should be displayed without any errors.

  3. Test the app site association by sharing links to your app on social media, messaging apps, or other platforms. When clicked, the link should open the corresponding content in your app.

Note: The app site association file must be served over HTTPS and must not have any redirects or authentication requirements. It should also be accessible without any query parameters or paths.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-08-08 11:00:00 +0000

Seen: 18 times

Last updated: Dec 28 '22