Providing an apple-app-site-association

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?

「いいね!」 2

Can you describe your use case more clearly? I don’t understand what you are trying to do here. Can you provide specific examples?

「いいね!」 1

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.

「いいね!」 2

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.

Sure, I get that, but if you aren’t doing anything to the content which the browser can’t I don’t think you’re going to get approval

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.

「いいね!」 8

This is great. Thanks so much!

「いいね!」 1

Yes, it is great. It clears my doubt. I checked the apple-app-site-association.

こんにちは、現在も動作していますか? Expo を使用しており、ドキュメントには、apple-app-site-association./well-known パスに配置するように記載されていました。また、Apple の開発者ドキュメントにも記載されています。

設定に ASSA を追加しましたが、このツールで ASSA を確認できません。以下のような結果になりました。

よろしくお願いいたします :face_holding_back_tears:

「いいね!」 1

app association ios のサイト設定に JSON を追加しましたか? ここメタでテストしたところ、問題なく動作しました。

なお、 https://yurl.chayev.com/ のバリデーターを使用しました(テスト目的だったので、設定からはすでに JSON を削除しました)。Branch.io のバリデーターは私には機能しませんでした。

「いいね!」 2

こんにちは、返信が遅れてすみません。はい、設定にAASAを追加しましたが、まだ機能させることができませんでした。AASAパスに関連していると思っていました。以前、このドキュメントでは、AASAをルートまたは/.well-known内に配置できると述べられていました。

  • apple-app-site-association ファイルをHTTPS Webサーバーにアップロードします。ファイルをサーバーのルートまたは.well-knownサブディレクトリに配置できます。

しかし、最新のドキュメントを確認したところ、ルートにAASAを配置することは言及されておらず、そのファイルを/.well-knownに配置することのみが推奨されていました。

私たちはスクリプトを使用する別の方法に移行したため、これ以上の調査は行っていません。お役に立てば幸いです。

「いいね!」 1