Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

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

like image 703
Pruthvi Avatar asked Sep 16 '19 14:09

Pruthvi


People also ask

Why link is not opening in app?

Why can't I open links on Android? If you can't open links on Android apps, make sure to check in-app settings, reinstall the app, or inspect in-app permissions. If that doesn't help, clearing cache and data from essential Google Services or reinstalling WebView should resolve the issue.

How long does it take for an app to go live on the Google Play store?

If your app's first release roll-out is on an internal test track, the submission must be reviewed before it can be published. Reviews can take a few hours or up to 7 days (or longer in exceptional cases), as it depends on the review time that your app is subject to.


1 Answers

I got into the same issue as it was working perfectly on the signed apk which was not uploaded to the 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

like image 137
Abhinav Khajuria Avatar answered Oct 28 '22 17:10

Abhinav Khajuria