Search code examples
xamarinxamarin.formsxamarin.iosios-universal-links

How to add multi Associated Domains on iOS?


I have many "Associated Domains" which has prefix difference on iOS.

Ex:

https://ironman.unilink.com

https://captain.unilink.com

https://hulk.unilink.com

https://thor.unilink.com

....

=> They are sub-domains of domain https://*.unilink.com

How to add more "Associated Domains" with on iOS?

  • At file Entitlements.plist, How do I add it?

I try to add it, but Can't open with sub-domain is called

enter image description here

Please help me!

Thanks!


Solution

  • From shared link, simply create a main subdomain where the apple-app-site-association file is hosted, and then create sub-subdomains for that domain.

    Such as:

    -- app.domain.com (this is the main subdomain; it hosts apple-app-site-association file)

    -- server1.app.domain.com (this also hosts the apple-app-site-association file)

    -- server2.app.domain.com (...)

    -- server3.app.domain.com (...)

    That is, both the primary domain and the subdomain need to have apple-app-site-association file.