13

I have implemented Android app links based on the below links.

https://developer.android.com/studio/write/app-link-indexing.html

https://developer.android.com/training/app-links

I have hosted assetlinks file into our domain https://ourdomain/.well-known/assetlinks.json And also I have verified this using https://developers.google.com/digital-asset-links/tools/generator and from android studio's App Links Assitant also. and got verified status from both the ways.

Now when I generate a signed build and tested it via google drive links. Android app link works as expected(on click of the link the application gets open without opening disambiguation dialog for android version 6.0 and above).

After uploading the same version to the play store it's not working.

Below is the code used in the manifest file.

            <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="<ourdomain>" />
        </intent-filter>

EDIT: Android app link did work as expected for one day after uploading it to the play store. and started opening disambiguation dialog again on the second day. Any idea what could be the issue?

The same version from the play store gave me two different Statuses as Ask and Always on a different day.

enter image description here enter image description here

adb shell dumpsys package domain-preferred-apps

When I run the above command

4

2 回答 2

10

我遇到了同样的问题,因为它在未上传到 Playstore 的签名 apk 上运行良好。

后来我发现我需要从 PlayConsole 添加 SHA256 密钥,方法是转到 Play Console 中的 Application Dashboard,然后是 Release Management --> App Signing,在那里你会发现 SHA-256 证书指纹 在assetlinks.json 中使用这个 SHA-256 https://ourdomain/.well-known/assetlinks.json然后从 playstore 重新安装应用程序它开始对我来说很好

于 2020-04-14T09:43:44.427 回答
0

新 Play 商店的说明:

转到 Play 商店,转到您的应用程序仪表板,转到设置/应用程序完整性(在左侧面板上)

在这个页面的底部是你Digital Asset Links JSON应该上传到 https://ourdomain/.well-known/assetlinks.json

于 2022-02-03T11:46:10.097 回答