预发布即时应用无法通过动态链接启动

时间:2017-07-21 15:30:41

标签: android android-instant-apps

在这里,我开发了一个支持Android Instant App文档的即时应用程序的应用程序。

App和Instant App具有相同的版本代码,App作为公开测试版发布,Instant App作为预发布版本发布。

它在我的设备上运行良好,它可以通过Google App,Chrome,Email中的动态链接启动,但几个小时前它总是跳转到相关的网站。

我已清除Google Play服务和Google Play Service for Instant App的缓存数据和应用数据,重新登录我的Google帐户,重新启用即时应用,清除Chrome历史记录和缓存数据,重新登录我的Chrome中的Google帐户。重新检查assetslink.json,重新检查清单文件中的url意图,所有内容都与以前的版本相同,除版本代码build.gradle外没有任何更改。

我测试了愿望,它的即时应用程序可以在Chrome中打开,但我的即时应用程序无法打开,只显示我的网站,即使使用adb命令启动。

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"

只有调试版本可以在WH Dev Manager运行时访问。

Developmemt Environment

  • Android设备是Pixel Android 7.1.2
  • Android Studio是3.0
  • Canary 7 Build#AI-171.4182969,建于2017年7月15日
  • JRE:1.8.0_152-release-884-b01 x86_64
  • JVM:JetBrains s.r.o
  • 的OpenJDK 64位服务器VM
  • Mac OS X 10.11.6

网站托管在 Amazon S3 上,域名由 CloudFront 处理。

接下来我应该检查什么?

新:

仔细检查logcat输出后,找到一行如下

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;'

更新:

在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 个答案:

答案 0 :(得分:1)

@TWL感谢您的回复。我找到了根本原因,并成功解决了问题,没有任何棘手。根本原因是我们的成员之一在发布到公开测试版时更改了发布国家,而选定的国家/地区列在Instant Apps的受支持国家/地区列表中,但事实是它们实际上并不是!!因此,两个小时后,当我加入美国时,它可以打开。

相关问题