Proper way to configure Apple App Site Association file
- Follow the steps in the official Apple docs https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html
{
"applinks": {
"apps": [],
"details": [
{
"appID": "TeamID.BundleID",
"paths": [ "/wwdc/news/", "/videos/wwdc/2015/*"]
},
{
"appID": "TeamID.BundleID",
"paths": [ "*" ]
}
]
}
}
- Make sure your webserver serves
/.well-known/apple-app-site-association
asapplication/json
<Files .well-known/apple-app-site-association>
Header set Content-type "application/json"
</Files>
- Make sure, that the the URLs refereced in the AASA file are exists
# for the example above
mkdir -p /var/www/wwdc/news
thouch /var/www/wwdc/news/index.html
thouch /var/www/videos/wwdc/2015/index.html
- iOS will only donwload the AASA file when your app is installed or updated!