As followed by the instruction of Support Universal Links - https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html, I have finished the following steps:
Create an apple-app-site-association file, which is served over https at the root of my domain i.e. https://<my-domain.com>/apple-app-site-association
The apple-app-site-association file’s ‘content-type’ header is set to application/json MIME types.
The content of apple-app-site-association is as below:
{
		"applinks": {
				"apps": [],
				"details": [
						{
								"appID": "J84F6UX8XQ.com.example.app",
								"paths": ["*"]
						}
				]
		}
}
Access of apple-app-site-association without any redirects.
Create an empty index.html file to the root of domain, so that the url of https://<my-domain.com>/ will return blank page with 200 code. The content of index.html is as below:
<html>
		<head>
		</head>
		<body>
		</body>
</html>
My app runs in iOS 9 or later.
The universal links has been setup correctly in my app
After all above steps, I verified the universal links at API Validation Tool - https://search.developer.apple.com/appsearch-validation-tool/. However, I always get an error message:
https://<my-domain.com>/ is returning 516. Please check your url and try again.
I never heard of https or nginx return code 516.
At last I failed to test the universal links on a device.
Any help is much appreciated!