java - Can I force my Android app to update from the Play Store?
问题描述
I fear my users will ignore my latest app updates if they don't think they're necessary.
The app is downloaded from the Google Play store, is there any way I can force updates of my application?
解决方案
用户可以控制是否启用自动更新。你不能强迫他们。如果应用程序没有服务器交互性,那么您无能为力。如果应用程序确实具有服务器交互性,则在每个请求中发送版本,如果版本太低,则返回错误响应。然后,客户端应解释该错误响应并显示“必须更新”屏幕
推荐阅读
- git - 为什么有时会出现Git合并vim画面
- c - 使用 execlp 将进程存储在列表、数组或字典中
- java - Adobe AATL 证书显示在我和另一位同事的机器上,但没有显示在其他机器上
- java - 当字段名称和/或值包含空格前导/尾随时如何使用jackson反序列化JSON字符串
- c++ - 擦除双链表的值函数,未知错误
- paypal - Paypal 订阅 - 更改协议的频率间隔
- c# - 如何在其父视图模型和模型的集合中删除视图模型和模型
- javascript - Ajax:无法检测到事件或 console.log
- html - 如何在 ajax 中构建 data-mage-init
- java - 识别屏幕上的数字