两个应用共享相同的通用 link

Two apps share same universal link

我在同一个 firebase 项目下有两个应用程序,它们共享相同的深度 link

如果多个 App 可以使用相同的通用 link,OS 如何处理 link?如何选择要打开的应用程序来处理某些页面?

例如,两个应用共享相同的通用 link https://xxx.app.goo.gl 如何识别打开用户或管理员应用程序?

根据 Apple,这取决于您的 AASA 文件的顺序。

The order of the dictionaries in the array determines the order the system follows when looking for a match, so you can specify an app to handle a particular part of your website.

在 AASA 文件中首先列出的应用程序将具有优先权。您可以通过查看 AASA 端点来检查:https://xxx.app.goo.gl/apple-app-site-association

您也可以指定要单独处理的某些路径,但如果两个应用程序共享相同的路径,则 AASA 中列出的第一个将打开。