我可以使用 InstantApps.showInstallPrompt 打开另一个应用程序的 Play 商店安装提示吗?

Can I open another app's play store install prompt with InstantApps.showInstallPrompt?

我想让 google 播放安装弹出窗口

然后我找到了这些答案:

所以,我阅读了 Instant Apps

的文档

我对 InstantApps 方法有疑问:showInstallPrompt

在 API 文档中,showInstallPrompt 方法显示一个对话框,允许用户安装当前的即时应用程序。

在这句话中,current instant app 是指我的instant app? 我可以在我的应用程序或即时应用程序中使用该方法打开另一个应用程序(第三方应用程序)安装提示吗?

showInstallPrompt() 将允许用户安装与您的免安装应用关联的完整应用(发布到 Google 使用相同应用标识符播放的应用)。

在此上下文中从用户角度安装免安装应用仅意味着从免安装应用升级到完整应用。

如果您希望用户安装不同的应用程序,您应该 link 改为 Google 播放,如此处所述使用 intents: https://developer.android.com/distribute/marketing-tools/linking-to-google-play#android-app 但是这样你就失去了升级机制将您的即时应用程序数据迁移到大多数 Android 版本的已安装应用程序。