A question I can't find specifically addressed in the documentation is: what if we have two apps that can both handle a given link? This is in fact our situation.
In most cases users will have one or other of the apps installed. The correct behaviour would then be to direct the user to the installed app.
In some cases the user will have both apps installed. In that case the ideal behaviour would be to direct the user to what we have defined to be the "main" app.
Hi all, if you're running into this post looking for a way to open multiple apps from the same AASA, please refer to @Frameworks Engineer 's answer except using the key "components" instead of "patterns". Eg:
"applinks": {
"details": [{
"comment": "Veggies is listed first.",
"appIDs": [ "0123456789.com.example.veggies" ],
"components": [
{ "/": "/nom-nom/*" }
]
},
{
"comment": "Fruits is listed second, and is only consulted if the first section didn't match anything on the user's device.",
"appIDs": [ "0123456789.com.example.fruits" ],
"components": [
{ "/": "/nom-nom/*" },
{ "/": "/fruits-but-not-veggies/*" }
]
}]
}
}
With this change to "components" instead of "patterns", you should be able to match to certain components of a link even for 2 separate apps