Instant App 无法下载完整的应用程序 | Google play 认为应用已安装
Instant App can't download Full App | Google play thinks app is already installed
问题:
尝试使用
测试即时应用到完整应用的转换时
InstantApps.showInstallPrompt(activity, intent, INSTALL_REQUEST_CODE, referer);
Google Play 商店发送错误通知
Can't Install App, APP_NAME
is already installed on this device. If
additional support is needed, get help troubleshooting. (Error code:
-1).
免安装应用程序随后挂在下载进度屏幕上,从未下载该应用程序。
我们目前正在 google 播放时使用 Alpha 通道测试免安装应用。即时应用程序在未安装应用程序时正确显示,完整版在直接下载时也能正常工作。
如果我在 phone 上安装即时应用程序的调试版本,然后在该版本中调用安装提示 api,它也可以正常工作。当您尝试从 Google Play 上托管的即时应用程序安装它时,它只是不起作用。
正在使用的设备
Pixel 2 XL -(错误代码 -1)
三星 Galaxy Note 3 -(错误代码 491)
Pixel 2 XL (8.1) -(错误代码 944)
我明白了,免安装应用的版本号必须小于完整 apk 中的一个。我采用了这样的版本系统,所以每次我发布对已安装 apk 的更新时,我都可以更新即时应用程序 100 次,而不必更改已安装的版本代码。
基础版本代码 = 1
versionCode = baseVersionCode * 100
instantAppIteration = 1
instantAppVersionCode = versionCode - (100 - instantAppIteration)
instantAppVersionName = versionName + "-" + instantAppIteration + "-IA"
问题: 尝试使用
测试即时应用到完整应用的转换时InstantApps.showInstallPrompt(activity, intent, INSTALL_REQUEST_CODE, referer);
Google Play 商店发送错误通知
Can't Install App,
APP_NAME
is already installed on this device. If additional support is needed, get help troubleshooting. (Error code: -1).
免安装应用程序随后挂在下载进度屏幕上,从未下载该应用程序。
我们目前正在 google 播放时使用 Alpha 通道测试免安装应用。即时应用程序在未安装应用程序时正确显示,完整版在直接下载时也能正常工作。
如果我在 phone 上安装即时应用程序的调试版本,然后在该版本中调用安装提示 api,它也可以正常工作。当您尝试从 Google Play 上托管的即时应用程序安装它时,它只是不起作用。
正在使用的设备
Pixel 2 XL -(错误代码 -1)
三星 Galaxy Note 3 -(错误代码 491)
Pixel 2 XL (8.1) -(错误代码 944)
我明白了,免安装应用的版本号必须小于完整 apk 中的一个。我采用了这样的版本系统,所以每次我发布对已安装 apk 的更新时,我都可以更新即时应用程序 100 次,而不必更改已安装的版本代码。
基础版本代码 = 1
versionCode = baseVersionCode * 100
instantAppIteration = 1
instantAppVersionCode = versionCode - (100 - instantAppIteration)
instantAppVersionName = versionName + "-" + instantAppIteration + "-IA"