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

查看:312
本文介绍了如何触发 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 Core 库来强制用户当他们打开应用程序时更新它.更多信息请访问: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天全站免登陆