Search code examples
iosswiftapple-appclipsapple-app-site-associateassociated-domains

Invoke appClip from specific URL endpoint


we've configure Associated Domain with appclips:<domain> in app and AASA file at that domain. configure meta tag as well for Card display. App clip card is working fine.

now question is, can we make it as it will display only at some specific URL endpoints. for ex. display appClip card only for <domain>/someEndpoint.

let's say domain is example.com, then it should show appClip card only for example.com/someEndpoint.

enter image description here


Solution

  • solve it by only applying meta tag to that specific end point.

    as per apple documentation for banner link

    To add a Smart App Banner to your website, include the following meta tag in the head element of each page where you’d like the banner to appear: