I'm trying to build instant app example from google samples.
I'm using Android Studio 3.0 beta 2 and my Nexus 5x real device with Android 8.0.0 version.
The source code I'm using is Github google samples project - android-instant-apps/hello-java. The only things I changed in this source code is my website links and app id.
I published this app on google play in prod channel and it is available for all users for now. Also I published an instant app for this application (also prod channel).
But it's not opening when I clicking the links, it's opening in chrome browser instead. I know that my device has instant app setting on and can open other link as instant app, for example buzzfeed.
When I'm trying to open my link I can see this in logcat:
10-11 10:39:29.336 3588-4026/? I/ActivityManager: START u0 {act=android.intent.action.VIEW dat=https://instant.isdev.info/... cmp=com.android.chrome/com.google.android.apps.chrome.Main (has extras)} from uid 10097
10-11 10:39:29.483 18862-18862/? I/cr_InstantAppsHandler: Disabled for Android O+
10-11 10:39:29.488 3588-18005/? I/ActivityManager: START u0 {act=android.intent.action.VIEW dat=https://instant.isdev.info/... flg=0x14002000 cmp=com.android.chrome/org.chromium.chrome.browser.ChromeTabbedActivity (has extras)} from uid 10053
My application is google play link.
My website is link.
My assets link json file is link. It was generated by Android studio App link assistant with my app id and release keystore.
My link which should open instant app is link.
My manifest for this link is:
<data android:scheme="https" />
<data android:scheme="http" />
<data android:host="instant.isdev.info" />
<data android:pathPrefix="/details" />
Also my instant app works well if I manually install it using this adb script from google samples readme file. It's opening an instant app when I'm clicking my link and the application marked as Instant Application in settings in application manager.
cd instant/build/outputs/apk/debug # navigate to build dir
unzip instantapp-debug.zip # extract apks
adb install-multiple -r -t --instantapp *.apk # install apks
# launch entry point; you'll have to replace $(SAMPLE_ENTRY_POINT)
adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d $(SAMPLE_ENTRY_POINT)
cd - # takes you back to the root directory
I don't know what to do. I tried almost everything. As you can see I even published application to prod. But it's still not working. Thanks for any help.