检查应用程序版本更新的Android [英] Checking for app version updates Android
问题描述
我创建的Android和iOS的应用程序有一个要求,以提醒当新的应用程序版本可用于各平台的用户。
- 我应该创建一个Web服务,提供基于平台的应用程序版本?
- 什么数据我需要在Web服务,以保持它的通用? Android使用的版本code其中作为iOS的使用主要和次要版本的更新。
- 应用程序是基于登录。我应该或之前检查用户登录后更新?
我应该创建一个Web服务,以提供基于应用程序的版本
平台?
块引用>=>因此Android提供的通知,每当新的版本可用,但正如你所说,是你的业务需求,所以我想你想实现/包括只有新版本的一些新功能。
所以检查版本并执行这样的,你必须要有网络服务是一样的。
我需要在Web服务中哪些数据,以保持它的通用? Android版
使用版本code其中作为iOS的使用主要和次要版本的更新。
块引用>=>您可以从当前应用程序获取的版本号。检查:<一href=\"http://stackoverflow.com/questions/6593592/get-application-version-programatically-in-android\">get在编程android应用的版本?
应用程序是基于登录。我应该检查后用户更新
在或之前日志?
块引用>=>有2种情况:
您可以调用Web服务并检查应用程序时启动。 (可能是在闪屏或别的东西)
如果你确实包括内部登录此功能(版本检查),那么你必须要检查所有用户是否已经登录或没有。因此,我认为这不是一个很好的案例。
I am creating an app in Android and iOS which has a requirement to alert the user whenever new app versions are available for the respective platforms.
- Should i create a web-service to provide the app versions based on the platforms?
- What data do i need in the web service to keep it generic? Android uses version code where as iOS uses major and minor version updates.
- The app is login based. Should i check for the updates after the user logs in or before?
解决方案Should i create a web-service to provide the app versions based on the platforms?
=> As such Android provides notification whenever new version is available, but as you mentioned its your business requirement, so i assume you want to implement/include some new features in new versions only.
so check version and implement such, you must have to have web service for the same.
What data do i need in the web service to keep it generic? Android uses version code where as iOS uses major and minor version updates.
=> You can fetch version number from the current app. Check: get application version programatically in android?
The app is login based. Should i check for the updates after the user logs in or before?
=> There are 2 cases:
You can call web service and check whenever app is launched. (May be in splash screen or something else)
If you do include this functionality (version checking) inside Login, then you must have to check everything whether the user is already logged in or not. So i think this is not a good case.
这篇关于检查应用程序版本更新的Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!