简体   繁体   English

Android 版本检查弹窗 window

[英]Android version check pop-up window

I'm writing java code for an android program, I'm stuck at the version check pop-up window, I want this pop-up to tell the users that their program is out of date and they need to update to the latest version.我正在为 android 程序编写 java 代码,我卡在版本检查弹出窗口 window,我希望这个弹出窗口告诉用户他们需要更新到最新版本的程序. And I want a button to redirect them to a ota.jason for them to find the new version.我想要一个按钮将他们重定向到 ota.jason 以便他们找到新版本。 Any ideas for the pop-up window functions?弹出 window 函数的任何想法? Thanks in advance.提前致谢。

You can use firebase remote config (or API).您可以使用 firebase 远程配置(或 API)。 Store the latest version code in firebase remote config (or server database) then compare the current version code of your app and server version code and show the dialog accordingly.将最新版本代码存储在 firebase 远程配置(或服务器数据库)中,然后比较您的应用程序的当前版本代码和服务器版本代码并相应地显示对话框。

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

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