Pre-Instant App cannot be launched via dynamic link

Here I have developed one instant app supported by Android Instant App document.

App and Instant App have the same release code, App is published as Open Beta, Instant App is published as Preview.

It works well on my device, it can be launched via dynamic link in google app, chrome, email, but since a few hours ago it always navigates to the corresponding website.

I cleared Google Apps cache and data data for Google Apps and Google Play for Instant App, re-logged into my google account, re-enabled Instant App, cleared Chrome history and cache data, went to google in Chrome. Reinstalled propertylink.json, re-checked the urls intent in the manifest file, they are all the same as the previous version, nothing has changed except the build.gradle version code.

I tested desire, instant app can be opened in chrome, but my instant app cannot be opened, just show me the website even with adb command to run.

adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d https://xxxx.xxxx.com/index.html -n "com.google.android.instantapps.supervisor/.UrlHandler"

      

Only debug version is available when starting WH Dev Manager.

Development environment

  • Pixel Android 7.1.2 Android Device
  • Android Studio 3.0
  • Canary 7 Build # AI-171.4182969, built on July 15, 2017.
  • JRE: 1.8.0_152-release-884-b01 x86_64
  • JVM: 64-bit OpenJDK virtual machine by JetBrains sro
  • Mac OS X 10.11.6

The site is hosted on Amazon S3 , the domain name is processed by CloudFront .

What should I check next?

New:

After carefully monitoring the logcat output, find one line below

07-21 11:32:24.650 20801-20801/? W/cr_GoogleAuth:  
Bad URI 'intent://xs4js.app.goo.gl/qL6j#Intent;package=com.google.android.gms;scheme=https;S.browser_fallback_url=https://xxxx.xxxx.com/index.html;end;'

      

Update:

Found other information in logcat.

07-23 20:35:51.456 1977-27698/? W/Conscrypt: Could not set socket write timeout:

07-23 20:35:51.458 1977-27698/? W/Conscrypt:    

java.lang.reflect.Method.invoke(Native Method)

07-23 20:35:51.458 1977-27698/? W/Conscrypt: wrp.a(:com.google.android.gms:58)

07-23 20:35:52.651 26256-27085/? I/cr_omaha: Attempting to schedule next job for: Mon Jul 24 01:06:11 PDT 2017

07-23 20:35:52.665 26256-26256/? I/cr_omaha: Scheduled using JobService

07-23 20:35:52.665 26256-26256/? E/cr_BkgrdTaskJS: Tried finishing non-current BackgroundTask.

07-23 20:35:52.736 26916-26916/? E/OptInDirector: Instant app launch failed for an unknown reason (getInstantAppPreLaunchInfo failed - check previous logcat)

07-23 20:35:52.736 26916-26916/? E/Supervisor: Opt-in aborted.

07-23 20:35:52.737 26916-26916/? W/Supervisor: Fallback handler not found with CATEGORY_BROWSABLE

      

+1


source to share


1 answer


@TWL Thanks for the answer. I found the root cause and solved the problem successfully without any complications. The main reason is one of our members changed the countries of distribution by publishing them to open the beta, while the selected countries are listed in the list of supported countries for instant apps, but in reality they are not! So, two hours later, when I added the United States, it can be opened.



+1


source







All Articles