简体   繁体   English

在没有Play商店的情况下更新应用

[英]Update app without Play Store

I have one service where I can put new apk file.For example, ( https://myweb.com/newversion.apk).My project is not in play store and I would to update my app remote,without play store. 我有一项服务,可以放置新的apk文件。例如( https://myweb.com/newversion.apk)。我的项目不在Play商店中,我将在没有Play商店的情况下远程更新我的应用程序。 I search about this in google,found some examples and articles,but I don't know witch is a best practice to solve my problem In your option,how I can solve my problem most optimal way? 我在google上搜索了此内容,找到了一些示例和文章,但我不知道女巫是解决我的问题的最佳方法。按您的选择,我如何才能以最佳的方式解决问题? Thanks 谢谢

One of the most optimal ways is to store APP version somewhere in web (for example in JSON file) with your APK file. 最佳方法之一是将APP版本与APK文件一起存储在网络中的某个位置(例如JSON文件中)。 And when running your app check if app version is not lower than stored in web JSON. 并且在运行您的应用程序时,请检查应用程序版本是否不低于存储在Web JSON中的版本。 If current app version is lower than stored in web - download new APK in background and and prompt user with notification and dialog about successful download and offer him to launch installation. 如果当前应用程序版本低于网络上存储的版本,请在后台下载新的APK,并提示用户有关成功下载的通知和对话框,并提供启动安装的提示。 For more details check this and this threads. 有关更多详细信息,请检查线程。

To implement auto update you can manage with your server with version details but for that you have to checked with application as well. 要实现自动更新,您可以使用版本详细信息管理服务器,但与此同时还必须与应用程序一起检查。

But there are another option from where you can manage auto-update. 但是,还有另一种可以用来管理自动更新的选项。 You can use custom class provide by below URL. 您可以使用以下URL提供的自定义类提供。

http://www.auto-update-apk.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM