One file for each domain, both www.example.com and example.com need separate files:
{
"applinks": {
"apps": [],
"details": {
"9JA89QQLNQ.com.apple.wwdc": {
"paths": [
"/wwdc/news/",
"/videos/wwdc/2015/*"
]
}
}
}
}
- Fall back gracefully
- If cannot handle, open Safari
UIApplication.sharedApplication().openURL(webURL)
There is no guarantee that the user experience with custom URL schemes will remain the same in the future. Smart App Banners afford the preferred experience.
https://developer.apple.com/videos/wwdc/2015/?id=509
<head>
<meta name="apple-itunes-app" content="app-id=640199958, app-argument=https://developer.apple.com/wwdc/schedule, affiliate- data=optionalAffiliateData">
</head>
I've found that the apple-app-site-association file is fetched when the app is installed on the device. So essentially, every install/update will trigger a download of the file. You can simulate this by deleting the app from your device and reinstalling it.
@gary-archer @rromanchuk Please help out with this:
I have an A record subdomain called (not real domain) sharing.sample.app with no Alias and a simple routing policy on route 53 in aws. The main website is hosted in S3 and the subdomain just points as stated above.
The app developer needs to upload the apple app association file and i have tried uploading the said file on an ubuntu server that the sub-domain points to which is /var/www/html/sharing but when i try to access the file calling the url https://sharing.sample.app/apple-app-site-association it just reverts me back to https://sharing.sample.app
I then tried to upload the said file to S3 on the public website url at its root and when i call the url https://sample.app/spple-app-site-association it downloads the file which shows me that it sees it.
How do i resolve this so that the url the developer needed to be https://sharing.sample.app/apple-app-site-association resolves and shows what the developer needs to display on the web browser as i tried to validate it on this url: https://branch.io/resources/aasa-validator/ and i got the following messages as an error:
sample.app – This domain has some validation issues
(GREEN) Congrats! Your domain is valid (valid DNS).
(GREEN) Your file is served over HTTPS. Learn More
(RED) Your server returned an error status code (>= 400). This includes client side and server side errors. Want to know what this means? Click here. Learn More
(AMBER) Content type test did not run. Be sure to define a ‘content-type’ header.
(AMBER) JSON test did not run. Your file should contain valid JSON. Learn More