I'm trying to integrate universal links in my iOS app. So whenever someone taps on <myapp>.herokuapp.com/content
gets redirected directly to app. I followed this guide for setup. I did the following setup but cannot get it working. I also checked other threads on stackoverflow but none of them solved the issue.
activitycontinuation:<myapp>.herokuapp.com
and applinks:<myapp>.herokuapp.com
.On my website added a route for apple-app-site-association
at https://<myapp>.herokuapp.com/apple-app-site-association
which returns the following json:
{
"applinks": {
"apps": [],
"details": [
{
"appID": "<teamId>.<bundleId>.dev",
"paths": [ "*" ]
},
{
"appID": "<teamId>.<bundleId>",
"paths": [ "*" ]
}
]
},
"activitycontinuation": {
"apps": [
"<teamId>.<bundleId>.dev",
"<teamId>.<bundleId>"
]
}
}
Installed app from Xcode to iPhone 6s Plus (physical device) with bundle id <bundleId>.dev
and copied link https://<myapp>.herokuapp.com/content
to Notes but it opens in Safari.
TEST THE UNIVERSAL LINKSRun the application on the simulator once to make sure the application is installed and running fine. 2. Keep the same simulator launched and running. Go to your simulator browser and open type the ngrok domain address i.e., https://1bd39880fbad.ngrok.io in my case.
Links can only open in-app if the user is signed in. The user should be registered and signed in before expecting links to content to open directly in the mobile app.
Fixed the issue. The problem was that I was testing with Debug configuration. When I tried with Release build everything is now working fine.
There are quite a lot of issues that could be preventing your Universal Links from working here.
Here are some things to double-check:
I would also recommend running through Alex Austen's super blog post on this topic, as doing so may help you spot the problem (here: https://blog.branch.io/how-to-setup-universal-links-to-deep-link-on-apple-ios-9/).
Branch has a number of tools/resources for identifying Universal Linking issues. They are specifically intended for use with Branch links, but you may still find them helpful:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With