Pet*_*der 5 android deep-linking applinks
我成功实施了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>
Run Code Online (Sandbox Code Playgroud)
当我点击我的网站链接时,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."
但仍然.. 应用程序链接不起作用。
然后我试了一下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 query\n",
问题出在哪里?提前致谢。
| 归档时间: |
|
| 查看次数: |
895 次 |
| 最近记录: |