I have an iOS app that launches when a url is clicked or visited. I want to add another app with this same behaviour. I have registered this new app in my apple-app-site-association
file and confirmed that it is rendered correctly on my server but when I visit the url meant to launch this new app it does not.
I have tried clearing the cache and rebuilding my server but does not work.
This is my apple-app-site-association
file
{
"applinks": {
"details": [
{
"appIDs": [
"XB5XPLRPRC.com.devfest.bookings", // works
"XB5XPLRPRC.com.devfest.subscription" // does not launch app
],
"paths": ["/*"]
}
]
},
"webcredentials": {
"apps": [
"XB5XPLRPRC.com.devfest.bookings",
"XB5XPLRPRC.com.devfest.subscription"
]
},
"activitycontinuation": {
"apps": [
"XB5XPLRPRC.com.devfest.bookings",
"XB5XPLRPRC.com.devfest.subscription"
]
}
}
The problem could be that the apple cdn has not yet gotten the latest changes of your apple-app-site-association
file.
Here is what you can do to fix this issue.
Go to https://app-site-association.cdn-apple.com/a/v1/{your_domain}. Confirm that what is returned matches with your latest changes. If it does not match, then it means the apple cdn has not synced your latest changes to the cdn.
If this is the case then you have two options here:
Settings>Developer>Associated Domains Development
on your iOS
device and enable it. This will cause your device to use the apple-app-site-association
directly from your server instead of apple cdn. Restart your device and then try again.