Home Instant App not loading from development track
Reply: 0

Instant App not loading from development track

user4284
1#
user4284 Published in April 26, 2018, 5:24 pm

I have an instant app that deploys and runs fine to emulator or device via my local development environment. In fact, I have an old version deployed in production which works perfectly fine but hasn't been updated in a long time and much of the Instant Apps tooling has changed since that was published. This of course implies I've already setup my assetlinks file on the website correctly as well.

I'm able to upload and deploy it to my development track on Google Play without error, but when opening a handled URL, it goes to Chrome instead of the instant app. I have read the docs already. The URL is in the manifest (it works from my dev environment after all).

I've run several URLs and looked at the logs for comparison. This is an abridged version of mine (I expect it to start the instant app but it just opens on Chrome):

01-12 15:27:57.884 2887-4983/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!  (parcel size = 1017252)
01-12 15:27:57.933 926-2361/? I/ActivityManager: START u0 {act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=https://www.example.com/... flg=0x10000000 cmp=com.android.chrome/com.google.android.apps.chrome.IntentDispatcher} from uid 10143
01-12 15:27:57.983 4985-4985/? I/cr_InstantAppsHandler: Package manager handles intents on O+, not handling in Chrome
01-12 15:27:57.985 926-2363/? I/ActivityManager: START u0 {act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=https://www.example.com/... flg=0x14002000 cmp=com.android.chrome/org.chromium.chrome.browser.ChromeTabbedActivity (has extras)} from uid 10056

vs BuzzFeed's (starts the IA successfully):

01-12 14:36:37.688 927-9531/? I/ActivityManager: START u0 {act=android.intent.action.VIEW dat=https://www.buzzfeed.com/... cmp=com.buzzfeed.android/com.buzzfeed.showxlib.activity.ShowPageInstantActivity} from uid 10166
01-12 14:36:37.814 927-2593/? I/ActivityManager: Start proc 13156:com.buzzfeed.android/u0a249 for activity com.buzzfeed.android/com.buzzfeed.showxlib.activity.ShowPageInstantActivity

vs https://www.google.com (starts Chrome as expected):

01-12 16:10:18.962 926-19253/? I/ActivityManager: START u0 {act=android.intent.action.VIEW dat=https://www.google.com/... cmp=com.android.chrome/com.google.android.apps.chrome.IntentDispatcher} from uid 10166
01-12 16:10:19.057 4985-4985/? I/cr_InstantAppsHandler: Package manager handles intents on O+, not handling in Chrome
01-12 16:10:19.060 926-3112/? I/ActivityManager: START u0 {act=android.intent.action.VIEW dat=https://www.google.com/... flg=0x14002000 cmp=com.android.chrome/org.chromium.chrome.browser.ChromeTabbedActivity (has extras)} from uid 10056

The FAILED BINDER TRANSACTION is the only thing that stands out. While it's difficult to truly attribute it to being related to resolving the IA intent, I've run this multiple times and seen the same behavior every time.

Is there a way I can get more information about what's going wrong and why it's failing to launch the instant app?

Also note that I've checked my tester lists and opted in via the URL, etc. already.

Here's a simplified form of what my intent filters look like:

<intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.BROWSABLE" />
    <category android:name="android.intent.category.DEFAULT" />

    <data android:host="www.example.com" />
    <data android:scheme="https" />
    <data android:scheme="http" />

    <data android:path="/k/keyword1" />
    <data android:path="/k/keyword2" />
    <data android:path="/k/keyword3" />
    ...
    <data android:path="/k/keyword1000" />

</intent-filter>

Imagine that I don't want to match:

    <data android:path="/k/keyword1001" />
    ...
    <data android:path="/k/keyword2000" />

If I have only a few data/path elements, then it seems to work, but when I get to a large number, the instant app fails to load.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.371501 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO