amplify-hosting icon indicating copy to clipboard operation
amplify-hosting copied to clipboard

Document how to host Apple's apple-app-association files

Open calavera opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe.

Amplify requires some redirects to correctly serve a well known file for Apple's App Store processes, the apple-app-association.json file.

Describe the solution you'd like

We need to document how to correctly serve that file with Amplify. One of our customers provided the right information here: https://github.com/aws-amplify/amplify-hosting/issues/1983#issuecomment-881549611

calavera avatar Mar 09 '22 17:03 calavera

Related to https://github.com/aws-amplify/amplify-hosting/issues/1927 It seems that Amplify has a hidden rewrite rule that adds a '/' to any URL without a file extension. e.g. /foo/bar -> /foo/bar/

notinaboat avatar Oct 19 '22 04:10 notinaboat

I tried two types of solution this [ { "source": "/.well-known/apple-app-site-association", "target": "/apple-app-site-association", "status": "200", "condition": null } ] and this [ { "source": "/.well-known/apple-app-site-association", "target": "/.well-known/apple-app-site-association.json", "status": "200", "condition": null } ] it's now working on Ionic App Can someone help me?

mickymien avatar Oct 31 '23 17:10 mickymien

I tried two types of solution this [ { "source": "/.well-known/apple-app-site-association", "target": "/apple-app-site-association", "status": "200", "condition": null } ] and this [ { "source": "/.well-known/apple-app-site-association", "target": "/.well-known/apple-app-site-association.json", "status": "200", "condition": null } ] it's now working on Ionic App Can someone help me?

Can I used in locally in my react.js project?

developeralamin avatar Mar 28 '24 11:03 developeralamin