我必须做什么来验证用户是否在 Google Play 上拥有我的应用的最新版本。如果用户没有最后一个,我会让他下载。
最佳答案
您可以使用应用内更新来更新您的应用(但这支持 API 21 及更高版本)
Supporting API level 21 and above, the Play Core library now allows us to offer in-app updates to our users — meaning we can show that an app update is available whilst the user is within the context of our application
如果您想强制用户更新应用,可以使用立即
类型更新
A full screen user experience that requires the user to update and restart the app in order to continue using the app. This UX is best for cases where an update is critical for continued use of the app. After a user accepts an immediate update, Google Play handles the update installation and app restart.
如果您的应用满足 API 级别(即最低 SDK 为 21),请遵循此 guideline使用应用内更新
关于java - 如何验证用户是否有 Google Play 中的最新更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57035036/