Post

Replies

Boosts

Views

Activity

Failed to setup Apple Universal Links
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: { &#9;&#9;"applinks": { &#9;&#9;&#9;&#9;"apps": [], &#9;&#9;&#9;&#9;"details": [ &#9;&#9;&#9;&#9;&#9;&#9;{ &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;"appID": "J84F6UX8XQ.com.example.app", &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;"paths": ["*"] &#9;&#9;&#9;&#9;&#9;&#9;} &#9;&#9;&#9;&#9;] &#9;&#9;} } 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> &#9;&#9;<head> &#9;&#9;</head> &#9;&#9;<body> &#9;&#9;</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!
2
0
2.1k
Sep ’20