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.
Hallo, funktioniert es im Moment noch? Ich benutze Expo und die Dokumentation erwähnte, die apple-app-site-association im Pfad ./well-known zu platzieren. Es wird auch in der Apple Dev-Dokumentation erwähnt.
Ich habe meine ASSA in den Einstellungen hinzugefügt. Allerdings kann ich meine ASSA immer noch nicht mit diesem Tool verifizieren. Dies ist das Ergebnis, das ich erhalten habe:
Haben Sie die JSON-Datei zur Website-Einstellung app association ios hinzugefügt? Ich habe hier auf Meta einen Test durchgeführt, und es hat einwandfrei funktioniert:
Beachten Sie, dass ich den Validator unter https://yurl.chayev.com/ verwendet habe (und die JSON-Datei hier aus der Einstellung entfernt habe, da es nur ein Test war). Der Branch.io-Validator hat bei mir nicht funktioniert.
Hallo, Entschuldigung für die späte Antwort. Ja, ich habe AASA in den Einstellungen hinzugefügt, aber ich konnte es nicht zum Laufen bringen. Ich dachte, es hätte etwas mit dem AASA-Pfad zu tun. Zuvor wurde in dieser Dokumentation erwähnt, dass wir AASA in unserem Stammverzeichnis oder unter /.well-known bereitstellen können.
Laden Sie die Datei apple-app-site-association auf Ihren HTTPS-Webserver hoch. Sie können die Datei im Stammverzeichnis Ihres Servers oder im Unterverzeichnis .well-known ablegen.
In ihrer neuesten Dokumentation wird jedoch nicht erwähnt, AASA im Stammverzeichnis bereitzustellen, sondern nur vorgeschlagen, diese Datei unter /.well-known bereitzustellen.
Ich habe hierzu keine weiteren Recherchen durchgeführt, da wir zu einem anderen Ansatz übergegangen sind und ein Skript verwenden. Ich hoffe, das hilft.