Universal Link How to forbid open all links except some?

101 Views Asked by At

apple-app-site-association:

{
    "applinks": {
        "details": [
            {
                "appIDs": [
                    "XXXXXXXXXX.com.project",
                ],
                "components": [
                    "/*/news/*"
                ],
                "defaults": {
                    "caseSensitive": false 
                }
            }
        ]
    }
}

Associated Domains:

applinks:*.siteName.com

With this configuration it opens any link in app.

I need next links to open the app:

And next to open site:

There are a lot of variations of subdomains (test1, test2, test3, test4...)

How can I achieve that?

1

There are 1 best solutions below

0
Nike Kov On BEST ANSWER

The answer is that AASA file has a wrong format. While I investigate this functional, I've made a guide with useful information. https://github.com/NikKovIos/AASA-Universal-Links-Information/blob/main/README.md