应用链接验证不起作用



我成功地实现了deep-links,但现在我也想实现app-links,但我没有得到想要的结果。

安卓清单

<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="http"
android:host="*.ex.com"
android:pathPrefix="/vvv" />
<data android:scheme="https"
android:host="ex.com"
android:pathPrefix="/vvv" />
</intent-filter>
<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="http"
android:host="*.ex.com"
android:pathPrefix="/ttt" />
<data android:scheme="https"
android:host="ex.com"
android:pathPrefix="/ttt" />
</intent-filter>

当我关注我的网站链接ex.com/.well-known/assetlinks.json时,我确实看到了我的 .json 文件。我将信息复制粘贴到那里:

https://developers.google.com/digital-asset-links/tools/generator它显示:"Success! Host www.ex.com grants app deep linking to xxx."

但是仍然..app链接不起作用。

然后我尝试了https://digitalassetlinks.googleapis.com/v1/statements:list?source.web.site=https://ex.com&relation=delegate_permission/common.handle_all_urls得到的回应是:

Error: unavailable: Redirect encountered while fetching statements from https://ex.com./.well-known/assetlinks.json (which is equivalent to 'https://ex.com/.well-known/assetlinks.json'): redirects are disallowed for security reasons (NOT_FOLLOWED_MAX_FORWARDS) [26] while fetching Web statements from https://ex.com./.well-known/assetlinks.json (which is equivalent to 'https://ex.com/.well-known/assetlinks.json') using download from the web (ID 1).n********************* INFO MESSAGES *********************n* Info: No statements were found that match your queryn",

问题出在哪里? 提前谢谢。

就我而言,由于从 www.example.com 重定向到 example.com,验证 url 给出了该错误

最新更新