Excluding AppClip URL

Hi. Appclips is great! 👍 I have one on production. My question is how do I exclude some urls from the app clips experience based on query params. Is there way to achieve it?

For example:
The urls that should open by appclip card is:
http://example.com
http://example.com/any/path/?any_param=any_value

But the urls that shouldn't be open by appclip card is
http://example.com/any/path/?specific_param=any_value

I'm trying unsuccessfully to edit the AASA file. I can't find the full documentation to the format of AASA files 📜. Especially full list of properties of appclips object. Here its my AASA file. I just copy details property from applinks to appclips in hope it help me. 🥺

Code Block
{
"applinks":{
"details":[
{
"appIDs":[
"H36Z8X7ZLM.ru.arproduction.mmrs"
],
"components":[
{
"/":"/project/mmrs/hello/*",
"comment":"Matches any URL like go.mmrs.me"
},
{
"/":"/project/*",
"?":{
"ios":"*"
},
"exclude":true,
"comment":"Matches any URL whose args equals ios and instructs the system not to open it as a universal link"
},
{
"#":"ios",
"exclude":true,
"comment":"Matches any URL whose fragment equals ios and instructs the system not to open it as a universal link"
}
]
}
]
},
"appclips":{
"apps":[
"H36Z8X7ZLM.ru.arproduction.mmrs.Clip"
],
"details":[
{
"appIDs":[
"H36Z8X7ZLM.ru.arproduction.mmrs"
],
"components":[
{
"/":"/project/mmrs/hello/*",
"comment":"Matches any URL like go.mmrs.me"
},
{
"/":"/project/*",
"?":{
"ios":"*"
},
"exclude":true,
"comment":"Matches any URL whose args equals ios and instructs the system not to open it as a universal link"
},
{
"#":"ios",
"exclude":true,
"comment":"Matches any URL whose fragment equals ios and instructs the system not to open it as a universal link"
}
]
}
]
}
}



Answered by liazkam in 642980022
Hi Alex,

I'm afraid there are three negatives in my answer:
  1. The appclips section in the AASA file can only include apps array. You cannot add any details like you do in Universal Link.

  2. The URL matching referes only to path, without the query params. So adding it to the invocation URL will not have effect.

  3. There is not exclude in invocations URL.

Looks like your only option is to whitelist only the relevant link as separate invocation URLs.

Sorry I couldn't assist positively. Maybe another user has an idea
Accepted Answer
Hi Alex,

I'm afraid there are three negatives in my answer:
  1. The appclips section in the AASA file can only include apps array. You cannot add any details like you do in Universal Link.

  2. The URL matching referes only to path, without the query params. So adding it to the invocation URL will not have effect.

  3. There is not exclude in invocations URL.

Looks like your only option is to whitelist only the relevant link as separate invocation URLs.

Sorry I couldn't assist positively. Maybe another user has an idea
Excluding AppClip URL
 
 
Q