Friday, 18 September 2020

InstantApp not being launched when clicking on link

My test app is published in a test closed track in Google Play (alpha) - but I've also tried with Internal Testing, same result.

It already shows the button "try now" after fixing the missing default-url. assetlinks.json placed on my server on the right place. App Links Assistant process fully configured.

I can't release my app publicly yet.

My instant app link looks something like this: https://my.host/my/path?paramA=1

On my Instant module manifest i declared:

            <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="http"
                    android:host="my.host"
                    android:pathPrefix="/my/path"/>
                <data
                    android:scheme="https"/>
            </intent-filter>
            <meta-data
                android:name="default-url"
                android:value="https://my.host/my/path" />

I've follow the google play opt-in to become a tester of my own app.

I'm fairly confident I've integrated it correctly because:

  • If i click on try now from the Google Play page my instant app will open (and Android will keep it in cache). If I then open the link (for example from an email), it works fine: opens the instant experience as I expect (probably because it is in the cache).

  • If i have the full app installed opening the link works fine: opens the app where it should go.

But...

  • If i never opened the instant (removed from cache on the device) nor have the app installed, opening the link does not bringing me to the instantApp (should load the instant app from the GooglePlay since you don't have it) instead it bring me to the website.

Does anyone has any idea or know of any additional step not mentioned in the official doc?

InstantApps version com.google.android.gms:play-services-instantapps:17:0.0

extra info, the option on Google Play for instant apps is on and I already tried turn off and back on.

If you think I omitted important details please comment my question and I'll try to add them

Thanks.



from InstantApp not being launched when clicking on link

No comments:

Post a Comment