Android即时应用内部测试

huangapple go评论80阅读模式
英文:

Android instant app with Internal testing

问题

I want to distribute my app as both normal and instant app on Google Play, the size of the normal bundle is below 10Mb so it can also be an instant app.

我想在Google Play上将我的应用程序同时分发为普通应用和即时应用,普通应用的大小在10Mb以下,因此它也可以是即时应用。

I followed google's guide to build instant apps with bundles (https://developer.android.com/topic/google-play-instant/getting-started/instant-enabled-app-bundle#test-from-studio).

我按照Google的指南使用捆绑包构建即时应用(https://developer.android.com/topic/google-play-instant/getting-started/instant-enabled-app-bundle#test-from-studio)。

Basically I created two bundles, one with the installable app (version code 1000) and one with the manifest configurations for instant app (targetSandboxVersion=2 and <dist:module dist:instant="true" /> version code 1).

基本上,我创建了两个捆绑包,一个用于可安装的应用程序(版本代码1000),另一个用于即时应用的清单配置(targetSandboxVersion=2 和 <dist:module dist:instant="true" /> 版本代码1)。

I also did the configuration for the verified app links, so deeplinking in the installable app works just fine.

我还配置了已验证的应用链接,因此可安装应用程序中的深层链接运行良好。

I uploaded both bundles to my internal test track, I invited myself as a tester. I can see the installable app on my phone, I can install it just fine, but the problem is that I cannot see the instant app, if I open the url for the instant app build from my phone, PlayStore app is getting stuck in a loading screen. Also the "Try now" button if I open the details of my app internal testing app.

我将这两个捆绑包上传到我的内部测试轨道,我邀请自己作为测试人员。我可以在我的手机上看到可安装的应用程序,我可以顺利安装它,但问题是我无法看到即时应用,如果我从手机打开即时应用的URL,PlayStore应用程序会卡在加载屏幕上。还有,如果我打开我的应用程序内部测试应用的详细信息,也没有“立即试用”按钮。

I have Google play instant and internal app sharing active. I tried everything I could find online, nothing seems to work. Any ideas what I am doing wrong? Thanks in advance.

我已经启用了Google Play即时应用和内部应用共享。我尝试了在线找到的所有方法,似乎都没有起作用。有没有任何想法,我在做错了什么?提前感谢您的帮助。

英文:

I want to distribute my app as both normal and instant app on Google Play, the size of the normal bundle is below 10Mb so it can also be an instant app.

I followed google's guide to build instant apps with bundles (https://developer.android.com/topic/google-play-instant/getting-started/instant-enabled-app-bundle#test-from-studio).

Basically I created two bundles, one with the installable app (version code 1000) and one with the manifest configurations for instant app (targetSandboxVersion=2 and <dist:module dist:instant="true" /> version code 1).

I also did the configuration for the verified app links, so deeplinking in the installable app works just fine.

I uploaded both bundles to my internal test track, I invited myself as a tester.
I can see the installable app on my phone, I can install it just fine, but the problem is that I cannot see the instant app, if I open the url for the instant app build from my phone, PlayStore app is getting stuck in a loading screen.
Also the "Try now" button if I open the details of my app internal testing app.

I have Google play instant and internal app sharing active.
I tried everything I could find online, nothing seems to work.

Any ideas what I am doing wrong?
Thanks in advance.

答案1

得分: 0

我遇到了类似的问题。在我的情况下,我的应用程序没有出现,因为Google Play缓存的原因。为了解决这个问题,以及通过我的链接访问我的应用程序,我使用以下命令清除了缓存:

adb shell am broadcast -a com.google.android.finsky.action.CONTENT_FILTERS_CHANGED

  • 您需要在连接了您所在的内部测试轨道上的设备的计算机上运行此命令。

之后,我的链接开始按预期工作。

如果您有其他问题,请告诉我,因为与即时应用程序相关的事项没有很好的文档,我也遇到了很多问题,也许我可以帮助您。

英文:

I faced a similar problem. In my case my app not appeared because of Google Play cache. So, to fix this and be able to acesse my app by my link I cleared the cache with the command:

adb shell am broadcast -a com.google.android.finsky.action.CONTENT_FILTERS_CHANGED
  • You need to run this on a machine with a connected device that you are in an internal test track.

After that my links started to works as expected.

If you have other problems, please let me know, because things related to instant apps not have good documentation and I faced a lot of issues, maybe I can help you too.

答案2

得分: 0

我将我的发布提升为封闭发布,应用程序经过了Google的审核流程,现在我可以看到“立即试用”按钮,并且即时应用功能已启用。

英文:

For anyone having the same issue, I promoted my release to a Closed release, the app went throw the google review process and now I can see the "Try now" button and the instant app functionality is enabled.

huangapple
  • 本文由 发表于 2023年8月4日 21:07:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/76836217.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定