Kenny Lim
Kenny Lim

Reputation: 1214

Wildcard universal link confirmation

I have a question about iOS universal link wild-card support.

I have the a few hundred sub-domains within my domain, say: 1. subdomain1.example.com 2. subdomain2.example.com 3. subdomain3.example.com ...

I am putting my JSON file in root DNS @ https://example.com/apple-app-site-association. My goal is to not needing to add JSON file in each of the subdomains and just put into root.

It seems that wild-card support is really about not needing to specify all the subdomains in the xCode entitlement PLIST rather than wild-card server-side (just populate in 1 place and be done).

Is there anyway to populate 1 JSON file at root to handle for all subdomains?

Upvotes: 2

Views: 1216

Answers (1)

Alex Bauer
Alex Bauer

Reputation: 13613

Unfortunately no. The apple-app-site-association file needs to be available on every single subdomain, and without any redirects. The wildcard matching for subdomains is only for the applinks entries in Xcode.

You might be able to configure some sort of proxying setup that serves the same file behind the scenes for every subdomain, but this would depend on your server configuration.

Upvotes: 5

Related Questions