简体   繁体   English

"应用程序在 Play 商店中上线后,Android 应用程序链接不起作用"

[英]Android app link not working after the application is made live in play store

I have implemented Android app links based on the below links.我已经基于以下链接实现了 Android 应用程序链接。

https:\/\/developer.android.com\/studio\/write\/app-link-indexing.html<\/a> https:\/\/developer.android.com\/studio\/write\/app-link-indexing.html<\/a>

https:\/\/developer.android.com\/training\/app-links<\/a> https:\/\/developer.android.com\/training\/app-links<\/a>

I have hosted assetlinks<\/code> 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<\/a> and from android studio's App Links Assitant also.我已将资产链接文件托管到我们的域 https: assetlinks<\/code>并且我已经使用https:\/\/developers.google.com\/digital-asset-links\/tools\/generator<\/a>验证了这一点android studio 的 App Links Assitant 也是。 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). Android 应用程序链接按预期工作(单击链接后,应用程序会打开,而不会打开 android 6.0 及更高版本的消歧对话框)。

After uploading the same version to the play store it's not working.将相同版本上传到 Play 商店后,它无法正常工作。

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>

I got into the same issue as it was working perfectly on the signed apk which was not uploaded to the playstore.我遇到了同样的问题,因为它在未上传到 Playstore 的签名 apk 上运行良好。

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后来我发现我需要从 PlayConsole 添加 SHA256 密钥通过转到 Play Console 中的应用程序仪表板然后发布管理-> 应用程序签名,您会在那里找到 SHA-256 证书指纹在 assetlinks.json 中使用此 SHA-256 https://ourdomain/.well-known/assetlinks.json然后从 Playstore 重新安装应用程序它对我来说开始工作正常

Instructions for the new Play Store:新 Play 商店的说明:

Go to the Play Store, go to your App's Dashboard , go to Setup/App Integrity (on the left panel)转到 Play 商店,转到您的应用程序仪表板,转到设置/应用程序完整性(在左侧面板上)

At the bottom of this page is your Digital Asset Links JSON which should be uploaded to https://ourdomain/.well-known/assetlinks.json此页面底部是您的Digital Asset Links JSON ,应上传到 https://ourdomain/.well-known/assetlinks.json

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM