We have an app that uses the universal links functionality and works most of the time but in some cases, specially with fresh installs and in random scenarios, when the user clicks the deep link on the email the mobile app is not opened and the web browser does it instead. The app supports iOS 12.2 and up.
Our set up is like this:
Currently the aasa file is hosted on the .well-known folder and the root folder on the server and the content type is json.
The file has the following format:
{
"webcredentials": {
"apps": [
"TeamID.bundleId"
]
},
"applinks": {
"apps": [],
"details": [
{
"appID": "TeamID.bundleId",
"paths": [
"/reset-password/*",
"/confirm-email/*"
]
},
{
"appIDs": [
"TeamID.bundleId"
],
"components": [
{ "/": "/reset-password/*" },
{ "/": "/confirm-email/*" }
]
}
]
}
}
- We added the corresponding associated domain on the project code
As I said before, it works fine most of the times but some random cases it doesn't. My suspicious is that the aasa file can't be downloaded in the cases that failed but I'm not sure about it.
Anyone experience the same kind of issue? Any help is much appreciated.
question from:https://stackoverflow.com/questions/65645013/ios-apple-universal-links-fails-randomly