Skip to content

Instantly share code, notes, and snippets.

@BatteryAcid
Created October 11, 2021 18:06
Show Gist options
  • Save BatteryAcid/ac8fb057eb118e4165e598204fa570fa to your computer and use it in GitHub Desktop.
Save BatteryAcid/ac8fb057eb118e4165e598204fa570fa to your computer and use it in GitHub Desktop.
apple-app-site-association file for enabling Universal Links in your app. Note there's no file extension.
{
"applinks":
{
"apps": [],
"details": [
{
"appID": "YOUR_APP_ID.YOUR_APP_BUNDLE_ID",
"paths": ["*"]
}]
}
}
@BatteryAcid
Copy link
Author

BatteryAcid commented Oct 11, 2021

This is a starter apple-app-site-association file, see the docs for more details: https://developer.apple.com/documentation/Xcode/supporting-associated-domains

You can find your app id and bundle id under your Apple account: Certificates, Identifiers & Profiles -> Identifiers -> Select the one you are using with your app. The label for app id is "App ID Prefix", or Team ID, on this page.

Once configured for your app, save it to the root of your website so that it is publicly accessible. There are websites and tools that will "check" to see if it is configured correctly, however, I found these to be unreliable and will show errors even though it is working correctly.

@BatteryAcid
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment