应用链接在测试环境中不起作用

Gab*_*lle 8 android applinks android-app-links

我正在尝试在我的应用程序中实现应用程序链接。当我打开应用程序时,我会看到一个带有登录按钮的登录屏幕。当按下此登录按钮时,将在浏览器中进入Web登录,然后将其重定向到应用程序。我想在此刻直接打开应用程序,但深层链接显示一个对话框。

json文件位于的正确位置,https://my_domain/.well-known/assetlinks.jsonContent-Typeapplication/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了。这可能是问题吗?

小智 0

你检查过类似的问题吗?/sf/answers/2936196651/也许您的测试环境上的 SSL 证书无效?

  • 看起来更像是评论 (3认同)