问题描述
我正在尝试在我的Android应用中设置应用链接。在清单文件中,我有这样的内容:
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.broWSABLE" />
<data
android:scheme="https"
android:host="myapp.example.com" />
</intent-filter>
所以我的问题是,该应用程序将在哪里确切尝试下载assetlinks.json
文件:
- a-
https://myapp.example.com/.well-kNow/assetlinks.json
- b-
https://example.com/.well-kNow/assetlinks.json
- c-
https://www.example.com/.well-kNow/assetlinks.json
感谢您的帮助
解决方法
根据this Google Guide,它将尝试从以下位置下载:
https://myapp.example.com/.well-known/assetlinks.json