Universal links are not working on prod env

Hi all, I am React Native developer. Recently i implemented Universal links for my app. For that i have done 2 steps.

a) adding the 4 applinks in associated domain

dev : web.dev.{appname}.com

qa : web.qa.{appname}.com

staging : web.staging.{appname}.com

prod : custom Domain.com

b) Hosting the Apple-app-site-association file in the respective servers => I hosted this file through the web developer with link tag from web.

hosting path sample :web.dev.{appname}.com/apple-app-site-association

It is working fine in Dev, qa, staging servers i tested through safari it is showing my app .It is not working on prod server here it is not showing any thing. Can any know aware of that what is the issue how to proceed further.

Here custom domain means => example.com

Your server paths should be of this form:

web.dev.{appname}.com/.well-known/apple-app-site-association

The path you're using will still sometimes work, but the .well-known subdirectory is now required.

My guess is that this isn't the problem, though. Try using curl to retrieve the AASA file from a computer that's not on any of your internal networks. You might find that your server provider is rejecting accesses from arbitrary IP addresses, or that it's redirecting to a HTML page, or that it's redirecting before serving the AASA file. All of those things will prevent Universal Links from working.

In particular, note that redirects of any kind are not supported when retrieving the AASA file.

Universal links are not working on prod env
 
 
Q