firebase-hosting - Firebase Dynamic Links -> universal links only for sub paths
问题描述
My website is hosted in Firebase without problems. I also have an matching iOS app that is successfully using Firebase dynamic links (added keys to plist file, entitlements...) with configured universal links (via Firebase) to this website. I have setup this custom domain for the dynamic links also. Works beautifully but...
Firebase correctly generates the apple-app-site-association file (in my hosted website) :
{
"applinks": {
"apps": [],
"details": [{
"appID": "xxxxxxxxxxxxxxx",
"paths": ["NOT /_/*", "/*"]
}]
}
}
But this matches my whole website -> there are not paths defined.
I would only like to match universal links of format mydomain.com/link how
can I do this?
How can I tell Firebase to generate a different apple-app-site-association file?
解决方案
I have been in contact with Firebase support and for the moment the AASA file is always generated as shown in the question = for the full site. A change request has been filed :-)
As a work around:
- disable the automatic generation of the AASA, by setting
appAssociation
field in your project's firebase.json file toNONE
. - Then manually create the AASA-file and upload it (usual way via Firebase hosting).
推荐阅读
- python - Python Plotly:百分比轴格式化程序
- excel - 在 Excel 中选择数据作为某些单元格之间的组,然后将每个单元格除以组值以查找百分比
- batch-file - 如何在所有子文件夹中单独压缩所有文件并在之后删除原始文件
- javascript - Leaflet 中的 geoJSON:显示与列表中的值匹配的特征
- c# - asp.net Core Razor CRUD - 不会接受任何有效的电话输入
- tensorflow - 如何按名称加载 keras-tuner 项目?
- c++ - 如何知道 C++ 中模板参数所需的接口/契约?
- discord.js - 无法定义变量 - discord.js (v12)
- javascript - 有没有办法在 JointJS 中更新图形/纸张或图形中的所有修改元素?
- javascript - 如何在我的 Visual Studio Code 中设置 Prettier 和 ESLint