Gab*_*lle 8 android applinks android-app-links
我正在尝试在我的应用程序中实现应用程序链接。当我打开应用程序时,我会看到一个带有登录按钮的登录屏幕。当按下此登录按钮时,将在浏览器中进入Web登录,然后将其重定向到应用程序。我想在此刻直接打开应用程序,但深层链接显示一个对话框。
json文件位于的正确位置,https://my_domain/.well-known/assetlinks.json它Content-Type是application/json。
我的清单文件包含应用程序链接所需的一切:
<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:host="myhost"
android:pathPrefix="/auth"
android:scheme="https" />
<data android:scheme="http"/>
Run Code Online (Sandbox Code Playgroud)
在Android Studio的日志中,我得到 SingleHostAsyncVerifier:
Verification result: checking for a statement with source b <
a: "https://host.de"
>
, relation delegate_permission/common.handle_all_urls, and target a <
a <
a: "BE:32:...:17"
>
b: "my_app_package"
>
--> false.
Run Code Online (Sandbox Code Playgroud)
和IntentFilterVerifier日志:
Verification 172 complete. Success:false. Failed hosts:my_host.
Run Code Online (Sandbox Code Playgroud)
的结果adb shell dumpsys package d是:
Package: my_app_package
Domains: my_domain
Status: ask
Run Code Online (Sandbox Code Playgroud)
我无法验证,https://digitalassetlinks.googleapis.com/v1/statements:list?source.web.site=https://web-site&relation=delegate_permission/common.handle_all_urls因为我的网站不是公开的,它不是生产链接,因此我得到Timeout Error了。这可能是问题吗?
| 归档时间: |
|
| 查看次数: |
203 次 |
| 最近记录: |