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

♀尐吖头ヾ 提交于 2019-12-09 18:34:22

问题


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

adb shell dumpsys package domain-preferred-apps

When I run the above command

来源:https://stackoverflow.com/questions/57959217/android-app-link-not-working-after-the-application-is-made-live-in-play-store

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!