App search API validation tool gives request time out

563 views Asked by At

I am working with universal app links. I had put my apple-app-site-association on my server root https://www.example.net/

It works fine for all links except https://www.portal.example.net/

When i validate this link in https://search.developer.apple.com/appsearch-validation-tool it gives fetch request timeout.

Note : In portal we redirect page to website homepage (https://www.example.net/)

1

There are 1 answers

2
Alex Bauer On

This is expected, due to the design of the Universal Links specification.

Here's why: https://www.example.net/ and https://www.portal.example.net/ are completely different subdomains of https://example.net/.

The Universal Links specification says each subdomain must be verified with its own apple-app-site-association file, which means a file hosted at https://www.example.net/apple-app-site-association will not work for any link on https://www.portal.example.net/. Redirects are not followed.

To fix this, simply host a file at https://www.portal.example.net/apple-app-site-association with no redirects.