英文:
How to deploy instant app as a separate project?
问题
请帮助那些有关即时应用有任何经验的人。我有一个完整的应用程序,正在进行内部测试。此外,我创建了一个单独的项目,将成为即时应用。即时应用和完整应用程序之间没有共享的功能,这就是我将它们制作成不同项目的原因。我在Android文档中看到了这样的声明:https://developer.android.com/topic/google-play-instant/getting-started/instant-enabled-app-bundle
在两个不同的Android Studio项目中开发即时应用和可安装应用是可以的。但是,如果这样做,您必须执行以下操作才能在Google Play上发布应用程序:
在两个Android Studio项目中使用相同的包名称。
在Google Play控制台中,将两个变体上传到同一个应用程序。
因此,我的主要应用程序和即时应用程序具有相同的捆绑ID,即时应用程序的版本代码我设置为1,完整应用程序的版本代码是5001,如同一指南中所述:
为确保您遵循用户期望的版本方案,请遵循以下策略之一:
重新启动Google Play即时体验的版本代码,设置为1。
将可安装的APK的版本代码增加大量,例如1000,以确保有足够的空间供即时体验的版本号增加。
我发布了2个版本代码。
我的即时应用程序:
我的完整应用程序:
但是,当我实际访问可共享的测试链接时,我看不到“立即尝试”按钮,只有“下载”按钮,它下载了完整的应用程序,而我创建的即时应用程序被忽略了。
我曾经看到,几年前,您实际上可以在一个“发布”部分部署即时应用程序的.aab文件,另一个部署完整应用程序的.aab文件。但是今天我看不到与即时应用相关的任何选项,它们已经过时了。有关如何部署即时应用和完整应用程序的任何建议吗?
英文:
Please help those who had any experience with instant apps. I have a full app, which is on internal testing. Also, I have created a separate project, which gonna be an instant app. There's no functionality instant app and the full app can share, that's why I made them as different projects. I have seen on Android docs https://developer.android.com/topic/google-play-instant/getting-started/instant-enabled-app-bundle such statement:
> It's OK to develop your instant app and your installable app in two separate Android Studio projects. If you do so, however, you must do the following to publish your app on Google Play:
>
> 1. Use the same package name in both Android Studio projects.
>
> 2. In the Google Play Console, upload both variants to the same application.
So my main and instant apps have the same bundle id, the version code for the instant app I have set for 1, full app - is 5001 as stated also in the same guide:
> To make sure that you follow the versioning scheme that users expect, follow one of these strategies:
>
> Restart the version codes for the Google Play Instant experience at 1.
>
> Increase the version code of the installable APK by a large number, such as 1000, to ensure that there is enough space for your instant experience's version number to increase.
I have published 2 version codes.
My instant app:
My full app:
But when i actually go to shareable link for testing, i don't see "Try now" button, only "Download" button, which downloads full app, the instant app i made is ignored.
I have seen, a few years ago you could actually deploy .aab for instant app in one of "release" sections and another for full app. But for today i don't see any option related to Instant Apps, they are outdated. Any suggestions how to deploy instant app and full app?
答案1
得分: 1
根据Android文档(https://support.google.com/googleplay/android-developer/answer/7381861?hl=en.),要为您的应用添加即时应用支持,需要按照以下步骤进行:
首先,您需要将Google Play即时应用添加为发布类型,并确保它处于活动状态。
打开Play控制台,转到高级设置页面(发布 > 设置 > 高级设置)。选择发布类型选项卡。点击“添加发布类型”并选择Google Play即时应用。完成这些步骤后,“Google Play即时应用”将列为发布类型。您还应该看到状态标为“活动”,并带有一个绿色勾号。
对于我(或今天的每个人),“发布类型”选项卡被命名为“表单因素”,在这里您可以添加即时应用支持。
之后,我选择了“仅即时应用”,并将我的.aab文件作为新的发布。
现在我可以在Google Play上看到我的即时应用以及完整的应用程序。
英文:
According to Android Documentation (https://support.google.com/googleplay/android-developer/answer/7381861?hl=en.) in order to add Instant App support to your app, you need to follow next steps:
> First, you need to add Google Play Instant as a release type and
> ensure that it’s active.
>
> Open Play Console and go to the Advanced settings page (Release >
> Setup > Advanced settings). Select the Release types tab. Click + Add
> release type and select Google Play Instant. After completing these
> steps, “Google Play Instant” is listed as a release type. You should
> also see the status listed as “Active” along with a green checkmark.
"Release types" tab for me (or today for everyone) is named "Form factors" and here you can add Instant App support.
After that, I selected "Instant Apps Only" and put my .aab file as a new release.
Now I can see my Instant App as well as the full app on Google Play.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论