To support deep linking and app-links on the web apple expects to find an apple-app-site-association file in root or in .well-known. Details on Apple’s site.
We are using the hosted version of Discourse. How can we provide a static file for iOS to find?
Sure. We have an app that we want to integrate our Discourse community into. When a visitor clicks on a link to that community from Safari (or any other app for that matter) we would like it to open our app and navigate to that link. Apple provides support for associating a domain with an app but it requires publishing a configuration file from that same domain - the apple-app-site-association file. Since the site is hosted by y’all I can’t just shove the static file up on the server…at least I don’t think I can.
AFAIK you can’t use universal links just to open the same webview within another app. If the app isn’t connecting to a back end and rendering out data in a way which enhances the view (think YouTube app over YouTube web UI) it will fail the review process.
Thanks for the insight Stephen. In our case the app will do more than just host the community. We will be integrating the community into a lot of the experience and we’d like to keep it all in within the same app experience.
This is done, there are now two new site settings: app association android and app association ios. The contents for each setting will be served at /.well-known/assetlinks.json and /apple-app-site-association, respectively.
Hola, ¿sigue funcionando en este momento? Uso Expo y la documentación mencionó poner la configuración de apple-app-site-association dentro de la ruta ./well-known. También se menciona en la documentación de Apple dev.
Agregué mi ASSA en la configuración. Sin embargo, todavía no puedo verificar mi ASSA con esta herramienta. Este es el resultado que obtuve:
Ten en cuenta que usé el validador en https://yurl.chayev.com/ (y ya eliminé el JSON de la configuración aquí porque solo era una prueba), el validador de Branch.io no me funcionó.
Hola, disculpa la demora en responder. Sí, agregué AASA en la configuración, pero no he podido hacerlo funcionar. Pensé que estaba relacionado con la ruta de AASA. Anteriormente, en esta documentación, mencionaron que podemos servir el AASA en nuestra raíz o dentro de /.well-known.
Sube el archivo apple-app-site-association a tu servidor web HTTPS. Puedes colocar el archivo en la raíz de tu servidor o en el subdirectorio .well-known.
Sin embargo, revisé su documentación más reciente y no menciona servir AASA en la raíz, solo sugiere servir ese archivo en /.well-known.
No he investigado más sobre esto, ya que pasamos a un enfoque diferente, utilizando un script. Espero que ayude.