Reputation: 59
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?
Entitlements.plist
, How do I add it?I try to add it, but Can't open with sub-domain is called
Please help me!
Thanks!
Upvotes: 0
Views: 2390
Reputation: 1370
Apple should say that *.domain.com works for >= 9.3.2 in this link Support Universal Links
https://stackoverflow.com/a/37317617/583616
I'm experienced the same problems and ended up adding all my domains explicitly (but I'm targeting iOS 9+)
applinks:uat.mydomain.com
applinks:www.mydomain.com
applinks:mydomain.com
If you have lots of subdomains and targeted iOS 9.3+ then you should be able to have just the one entry.
applinks:*.mydomain.com
Upvotes: 0
Reputation: 12723
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.
Upvotes: 2