在Play商店中启用该应用程序后,Android应用程序链接不起作用 [英] Android app link not working after the application is made live in play store

查看:177
本文介绍了在Play商店中启用该应用程序后,Android应用程序链接不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已基于以下链接实现了Android应用程序链接.

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

我已将资产链接文件托管到我们的域中 https://ourdomain/.well-known/assetlinks .json 另外,我已经使用 https://developers.google.com/digital进行了验证-asset-links/tools/generator 以及来自android studio的应用链接助手".并通过两种方式获得了验证状态.

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.

现在,当我生成一个已签名的版本并通过Google驱动器链接对其进行测试时. Android应用程序链接按预期方式工作(单击链接后,应用程序将打开,而无需打开适用于Android 6.0及更高版本的消歧对话框).

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).

上载相同版本的Play商店后,它无法正常工作.

After uploading the same version to 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>

Android应用链接在将其上传到Play商店后的一天能够正常工作.并在第二天再次打开消歧对话框.知道可能是什么问题吗?

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?

Play商店中的同一版本在不同的一天给了我两个不同的状态,分别为询问总是.

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

adb shell dumpsys程序包domain-preferred-apps

adb shell dumpsys package domain-preferred-apps

当我运行上面的命令时

推荐答案

我遇到了同样的问题,因为它在未上传到Playstore的签名apk上运行正常.

I got into the same issue as it was working perfectly on the signed apk which was not uploaded to the playstore.

后来我发现我需要从PlayConsole添加SHA256密钥 通过转到Play控制台中的应用程序信息中心" 然后发布管理->应用程序签名 在那您会找到SHA-256证书指纹 在Assetalinks.json中的 https://ourdomain/.well-known/assetlinks中使用此SHA-256. json ,然后从playstore重新安装该应用 对我来说一切正常

Later I found out that I need to add the SHA256 key from PlayConsole By going to Application Dashboard in Play Console then Release Management --> App Signing and there you will find SHA-256 certificate fingerprint Use this SHA-256 in assetlinks.json at https://ourdomain/.well-known/assetlinks.json and then reinstall the app from playstore It started working fine for me

这篇关于在Play商店中启用该应用程序后,Android应用程序链接不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆