The apple-app-site-association file was found but it doesn’t follow the required format

5k views Asked by At

I'm using this API Validation Tool from Apple and I got 6 of 7 validation PASSED in a specific page but "Universal Links" test got this message:

"The apple-app-site-association file was found but it doesn’t follow the required format. Learn how to format the apple-app-site-association file."

I saw this videos from WWDC 2015 "Seamless linking to your Apps" and "Introducing Search API" and read this App Search Programming Guide.

My website have an SSL certificate (from Authority certified) and my apple-app-site-association is inside https://www.mywebsite.com/apple-app-site-association

This is an example for my apple-app-site-association file:

{
"applinks": {
    "apps": [],
    "details": [
        {
            "appID": “TeamId.com.MyCompany.MyAppName01”,
            "paths": [ “*” ]
        },
        {
            "appID": "TeamId.com.MyCompany.MyAppName02”,
            "paths": [ "*" ]
        }
    ]
   }
}

NOTE: The appName is Case Sensitive.

I don't know what is wrong with the file. Maybe is a syntax error but I can not see it.

Any help will be appreciated.

1

There are 1 answers

13
Maciek Czarnik On BEST ANSWER

They introduced a change in the format recently. According to docs you need to reformat it to match this:

{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "9JA89QQLNQ.com.apple.wwdc",
                "paths": [ "/wwdc/news/", "/videos/wwdc/2015/*" ]
            },
            {
                "appID": "TeamID.BundleID2",
                "paths": [ "*" ]
            }
        ]
    }
}

Plus give Applebot some time it started to work for me on the next day. Oh, and I see that your quotemarks are wrong - make sure, that you have the right quotemarks. Use these only:

"