Im trying to get this Apple's API validator to validate my apple-app-site-association
file on https://signin.methodwarehouse.com. The validator is saying "Error cannot fetch app site association". However, this file is clearly available at https://signin.methodwarehouse.com/apple-app-site-association. The content of this JSON file is copied directly from Apple's documentation so it should validate just fine. What am I doing wrong? Why is this file not passing validationg?
To add the associated domain file to your website, create a file named apple-app-site-association (without an extension). Update the JSON code in the file for the services you support on the domain. For universal links, be sure to list the app identifiers for your domain in the applinks service.
After you create the apple-app-site-association file, upload it to the root of your HTTPS web server or to the . well-known subdirectory. The file needs to be accessible via HTTPS—without any redirects—at https://<domain>/apple-app-site-association or https://<domain>/.well-known/apple-app-site-association .
The apple-app-site-association file is cached once when the app is first installed. If this initial scrape fails, in almost all situations it will not be reattempted. The only exception to this is if the initial return is a 5xx error, in which case a limited number of retries may occur.
well-known/apple-app-site-association for the apple-app-site-association file that is required to implement Universal Links and Shared Web Credentials. If the file is not found in this location, then the device will request the file in the root of the web server, as with prior releases of iOS 9.
This issue resolved by itself in a matter of a few hours. I think what happened was Apple's API validator was using a cached version of my apple-appsite-association
file that was invalid.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With