Reputation: 576
I tried almost everything, but I'm unable to get Universal Links to work. I'm testing with Xcode 9.3 on physical device with iOS 11.3.
On my server I installed the apple-app-site-association File, the AASA validator (https://branch.io/resources/aasa-validator/) has no issues with it.
File content:
{
"applinks": {
"apps": [],
"details": [
{
"appID": "TEAMID.bundle-identifier",
"paths": [ "*", "/" ]
}
]
}
}
Also I tripple checked TeamID and BundleIdentifier. The Entitlements in Xcode contains the right values:
But still any link redirects to Safari, Open In.. from the long-press menu is not available. From my server-logs, it seems the apple-app-site-association
file is never downloaded.
Update
apple-app-site-association
file is without file extension. I tried with installing over Xcode as well as over TestFlight.
Here the Associated Domains from Xcode:
Upvotes: 5
Views: 7831
Reputation: 195
Please replace the appId(TEAMID.bundle-identifier) with application identifier. We will get it simply from your App Store account from provisioning profile.
Upvotes: 1
Reputation: 3805
Another (unusual) way this can happen.
I was banging my head against the wall trying to get my links to work in same situation. On device the links open in my hosted site, but don't transition to open my app, instead they opened the App Store and complained that my app wasn't found. Eventually I realized I had never uploaded my app to the App Store (even though I had create an App record for it in my account). Once I uploaded an actual binary, my links started working perfectly.
Upvotes: 0
Reputation: 576
The problem was the same as described in this blog-post https://blog.branch.io/notice-inconsistent-universal-link-behavior-on-ios-11-2/
I uninstalled, restarted and installed it for 3 times, then it started working.
Upvotes: 3
Reputation: 2617
I believe it should be applinks:
not applink:
in the Entitlements file
Upvotes: 3