如何在Play商店应用验证版本编程? [英] how to verify app version on play store programmatically?

查看:180
本文介绍了如何在Play商店应用验证版本编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Play商店的应用程序,我想做到以下几点:

I have an application on play store and i would like to do the following:

当用户启动应用程序应该验证,如果应用程序的版本是Play商店是安装,如果没有,我会显示一个对话框,一个选项,以提醒这种情况下重定向到Play商店更新相同

When the user starts the application it should verify if the application's version that is on play store is the same that is installed and if NOT i will show a dialog to alert this situation with an option to redirect to play store to update it.

我知道Play商店中的应用程序会自动做到这一点,但如果用户更改此配置。这是个问题!

I know that the play store's application do this automatically but if the user change this configuration.. this is a problem!

一个试图找到在互联网上,但没有成功的解决方案,任何帮助? :D

A tried to find a solution over the internet but without success, any help?? :D

推荐答案

还有就是要做到这一点没有正式的方式,但是你可以看看

There is no official way to do this, However you can take a look at

的https://$c$c.google.com/p / Android的市场API /

您可以用你的包名称搜索市场,然后从中提取的版本号,按上例的这里

You can search the market using your package name and then extract the version number from it, Follow the example here.

有一个更好/更简单的解决办法是在网上举办一个XML文件(甚至.txt文件)和当前版本保存在里面。然后检查它在你的应用程序的启动。

A better/simpler solution would be to host a xml file (or even a .txt file) online and store the current version inside it. then check it on your App's startup.

这篇关于如何在Play商店应用验证版本编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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