[英]How do I know when an app is available for update (alpha, beta or prod) in play store?
How do I know when an app is available for update (alpha, beta or prod) in play store? 我怎么知道什么时候可以在Play商店中更新应用程序(alpha,beta或prod)? (We don't need this from the inside of the app) Is there any chance to get this info without the need to have a separate user for each stage (alpha, beta, prod) to view the play store listing?
(我们不需要从应用程序内部获取此信息)是否有机会获取此信息,而无需每个阶段(alpha,beta,prod)都有单独的用户来查看Play商店列表?
We just want to have the information when the app has been published and is available for the users (for the given stage) 我们只想在应用发布后获得信息,并可供用户使用(在给定阶段)
There are two ways of doing this. 有两种方法可以做到这一点。
<div class="content" itemprop="softwareVersion"> 2.2.0 </div>
Finally compare it in your app version in code 最后在代码中将其与您的应用版本进行比较
String version = this.getPackageManager().getPackageInfo(this.getPackageName(), 0).versionName;
字符串版本= this.getPackageManager()。getPackageInfo(this.getPackageName(),0).versionName;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.