【发布时间】:2018-04-23 15:09:12
【问题描述】:
我有 2 个名为 AppOne 和 Apptwo 的应用程序。 AppOne 只有一个活动,是一个即时应用程序。我有即时应用程序的网址。我已将其部署到 Play 商店进行内部测试。在我的 Apptwo 中,我想通过 url 打开我的即时应用程序。我尝试了很多次,但我只成功打开了一次即时应用程序,即使我的设备上没有安装 AppOne,大多数时候它会显示我网站的网页。
当我在我的设备上安装 AppOne 时,Apptwo 成功打开了 AppOne,但现在 AppOne 是我不想要的已安装应用程序。我是否需要提供 Firebase 动态链接,以便我的 Apptwo 始终打开 AppOne,现在我只是将我的网站的 URL 链接到我的即时应用程序。当我将即时应用程序部署到 Play 商店时,它会向我显示以下消息,即使我的 AppOne 的 apk 是实时的
Changes to your Instant App's testing tracks
Your instant app's pre-release and development tracks will soon be merged into your installed app's alpha and internal test tracks respectively.
IMPORTANT:
Your installed app's alpha and internal test testers are now your instant app's pre-release and development testers respectively.
You will only be able to edit and manage your instant app's testers through your installed app's testing tracks.
Your instant app testers will soon be removed. Any testers for your instant app can only be managed through your installed app's testing tracks.
Please go to the corresponding installed app testing track to make changes
当我删除我的即时应用程序的 Google Play 服务并再次下载它时,第一次尝试时只有我的 Apptwo 打开我的即时应用程序,然后它继续打开我的网站网页。我必须再次删除即时应用程序的谷歌播放服务并下载它,才能看到我的即时应用程序。
【问题讨论】:
-
我从其他应用程序启动 IA 没有问题。有关于如何启动它的示例代码吗?类似于github.com/googlesamples/android-instant-apps/blob/master/… ?
-
@TWL 仅当您在从 Apptwo 调用之前已经在设备中安装了即时应用程序时,这才有效。如果我没有免安装应用并想直接从 Apptwo 打开怎么办
-
当 IA 不在我的设备上时,此代码仍然适用于我,无论是 pre-O 还是 O+ 设备。
-
@TWL 我只将我的免安装应用上传到 Playstore。我还没有将我的 AppTwo 上传到 Playstore。我需要将我的 AppTwo 上传到 Playstore 才能使用吗?
标签: android firebase-dynamic-links android-instant-apps