I am trying to integrate universal links in my iOS application. Therefore, whenever someone clicks on <myapp>.herokuapp.com/content, he is redirected directly to the application. I have completed this setup guide. I made the following setup, but cannot make it work. I also checked other threads in stackoverflow, but none of them solved the problem.
- Added Related Domains tab in Capabilities in my target program. Two domains added:
activitycontinuation:<myapp>.herokuapp.comand applinks:<myapp>.herokuapp.com. - In the phase assembly> Resource copy resources, file permissions are added.
- Got a team from https://developer.apple.com/account/#/membership
On my site, added a route for apple-app-site-associationin https://<myapp>.herokuapp.com/apple-app-site-associationwhich returns the following json:
{
"applinks": {
"apps": [],
"details": [
{
"appID": "<teamId>.<bundleId>.dev",
"paths": [ "*" ]
},
{
"appID": "<teamId>.<bundleId>",
"paths": [ "*" ]
}
]
},
"activitycontinuation": {
"apps": [
"<teamId>.<bundleId>.dev",
"<teamId>.<bundleId>"
]
}
}
An installed application from Xcode on the iPhone 6s Plus (physical device) with the package ID <bundleId>.devand the copied connection https://<myapp>.herokuapp.com/contentin Notes, but it opens in Safari.
source
share