java - 如何验证用户是否有 Google Play 中的最新更新

标签 java android android-studio user-controls

我必须做什么来验证用户是否在 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/

相关文章:

java - 使用 Java 和 Sax 解析某些 RSS 提要时遇到问题

java - 如何在 NetBeans GUI Builder 中包含自定义面板?

java - 使用 RingCentral API 添加新联系人

android - Cordova Android 从两个插件重复使用功能

Android:如何对标准 android 短信 GUI 进行编程更改

java - Hibernate 映射只有一个类

java - 带路径解析器 : Points are too far apart Navigation Drawer

android-studio - 如何在 Android Studio 中打开现有的 Flutter 项目

Android Studio,无法迁移到 AndroidX

java - 在 Android 上运行 shell 命令不会返回任何结果