iosswiftapple-app-site-associate

Apple-app-site-association file not linking to application


Even after 48 hours, as said in apple documentation, apple-app-site-association is not working in my application. I have checked with [apple validation tools] (https://search.developer.apple.com/appsearch-validation-tool/) but its showing Error no apps associated with url in the Link to Application. Here is the format of my apple-app-site-association file

{
    "applinks": {
        "apps": [],
        "details": [{
            "appID": "{team_id}.{bundle_id}",
            "paths": ["*"]
        }]
    }
}

I have also enabled Associated Domains for the appId from developer.apple.com and in the XCode capabilities settings also.

I have already tried [this] (iOS Universal Links not working via TestFlight)

Also check the Apple Developer Forum but couldn't find a solution there also.


Solution

  • Make sure you are following these steps

    1. Enabled Associated Domains in the app App services from the developer.apple.com
    2. Set the domain name correctly in the Associated Domains in the Xcode capabilities and also enabled this.
    3. You have correctly generated the apple-app-site-association file. The file must not have any extension. Here is the format for the file:
    {
        "applinks": {
            "apps": [],
            "details": [{
                "appID": “{app_prefix}.{your_app_bundle_identifier}”,
                "paths": ["*"]
            }]
        }
    }
    

    Make sure apps tag in the file is be empty and appID is made up of your app Prefix and bundle identifier separated by.

    NOTE: I don't know why but I am using app prefix instead teamID as mentioned in most of the posts and even on the apple documentation. But it didn't work for me.

    You can also try by using app prefix of the app id instead of teamID