如何触发Google Play商店的自动更新机制? [英] How can I trigger the Google Play Store's auto update mechanism?

查看:226
本文介绍了如何触发Google Play商店的自动更新机制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简而言之,我希望在我的商店发布新APK后立即更新我的应用.

In short, I would like my app to be updated as soon as I release a new APK to the store.

我找不到有关自动更新实际发生时间的任何信息,似乎变化很大-一次是在几个小时后发生的,另一次是12个小时内没有更新.看来这是在设备重新启动时发生的,但是还有其他情况吗?我可以自己(以编程方式)触发它吗?

I could not find any information about when the auto update actually occurs, and it seems it varies greatly - at one time it happened after a couple of hours and another time no updates for 12 hours. It seems that it happens on device reboot, but are there any other scenarios? Can I trigger it myself somehow (programmatically)?

我的实际情况比较复杂,但是最终结果是相同的:

My real scenario is a bit more complex, but the end result is the same:

  • 我在设备上也有一个预安装的应用程序,该设备也在Play商店中

  • I have a pre-installed app on the device which is also on the play store

用户添加帐户后,我的应用就会显示在Play商店应用中,并显示可用更新(相同的软件包,相同的签名,所有内容都是合法的)

As soon as the user adds an account my app shows in the play store app with an available update (same package, same signature, everything is legit)

我希望此更新尽快发生

有什么办法做到这一点?

Any way to make that happen?

推荐答案

否,您不能强制Google Play尽快自动更新应用,但是您可以使用Google Play核心库强制用户执行以下操作:当他们打开应用程序时更新它.此处的更多信息: https://developer.android.com/guide/playcore/应用内更新

No, you can't force Google Play to automatically update the app as soon as possible, but you can use the Google Play Core library to force the user to update the app when they turn it on. More information here: https://developer.android.com/guide/playcore/in-app-updates

这将使用户看到一条消息,告诉他们需要将其应用程序更新到新版本.

This will make the user see a message telling them they need to update their app to a newer version.

这篇关于如何触发Google Play商店的自动更新机制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆