App clip - Cannot Reach AASA File

I have an app binary (com.BinaryJigsaw.PlanHub) that includes an app clip that has been reviewed and approved.

I have three domains in the associated domains, set in xcode. I have my AASA file up and running on my planhub.app domain (not the others yet - just trying to get this one working first!), but I am not able to set up an app clip experience. When I enter the URL (https://planhub.app) in App Store Connect I get:

"This URL is not contained in your app’s associated domains. Update associated domains or use a different URL."

If I look at the domain URL status for the build it says: "Cannot Reach AASA File".

That seems to be incorrect as I run this test from terminal and get a 200 response and the json file is returned.

curl -v https://app-site-association.cdn-apple.com/a/v1/planhub.app

The bundle IDs in the AASA file match my app and app clip.

Any help appreciated!

Answered by DTS Engineer in 829108022

Thank you for sharing your post. I am reviewing your AASA file format, and it appears that it may be the old format or that you are adding components and paths to the same file.

To begin, I suggest creating a very simple file and modifying your AASA file accordingly.

{
"appclips": {
"apps": ["ABCDE12345.com.example.MyApp.Clip"]
}
...
}

At present, your file contains both the app-clips path and the old format for applinks. To ensure the file format is correct, I recommend simplifying the file to its minimum requirement.

As the file currently appears to be a combination of the old and new formats,

{
"appclips": [
{
"appID": "3G7D2UJRJH.com.BinaryJigsaw.PlanHub.Clip",
"paths": ["*", "/*"]
}
],
"applinks": {
"apps": [],
"details": [
{
"appID": "3G7D2UJRJH.com.BinaryJigsaw.PlanHub",
"paths": ["*", "/*"],
"components": [
{
"#": "no_universal_links",
"exclude": true,
"comment": "Matches any URL whose fragment equals no_universal_links and instructs the system not to open it as a universal link"
}
]
}
]
}

Resources: https://developer.apple.com/videos/play/wwdc2020/10146/ https://developer.apple.com/documentation/technotes/tn3155-debugging-universal-links https://developer.apple.com/documentation/appclip/associating-your-app-clip-with-your-website

Albert Pascual
  Worldwide Developer Relations.

Accepted Answer

Thank you for sharing your post. I am reviewing your AASA file format, and it appears that it may be the old format or that you are adding components and paths to the same file.

To begin, I suggest creating a very simple file and modifying your AASA file accordingly.

{
"appclips": {
"apps": ["ABCDE12345.com.example.MyApp.Clip"]
}
...
}

At present, your file contains both the app-clips path and the old format for applinks. To ensure the file format is correct, I recommend simplifying the file to its minimum requirement.

As the file currently appears to be a combination of the old and new formats,

{
"appclips": [
{
"appID": "3G7D2UJRJH.com.BinaryJigsaw.PlanHub.Clip",
"paths": ["*", "/*"]
}
],
"applinks": {
"apps": [],
"details": [
{
"appID": "3G7D2UJRJH.com.BinaryJigsaw.PlanHub",
"paths": ["*", "/*"],
"components": [
{
"#": "no_universal_links",
"exclude": true,
"comment": "Matches any URL whose fragment equals no_universal_links and instructs the system not to open it as a universal link"
}
]
}
]
}

Resources: https://developer.apple.com/videos/play/wwdc2020/10146/ https://developer.apple.com/documentation/technotes/tn3155-debugging-universal-links https://developer.apple.com/documentation/appclip/associating-your-app-clip-with-your-website

Albert Pascual
  Worldwide Developer Relations.

App clip - Cannot Reach AASA File
 
 
Q