简体   繁体   English

iOS 和 Android 应用旧版本 - 禁止使用

[英]iOS and Android app old version - prevent using

We are going to do a major update to an mobile app (both iOS and Android).我们将对移动应用程序(iOS 和 Android)进行重大更新。 When we do this update, we need to prevent the existing user using the older version anymore (in case if the new version is not auto updated) as some features might not work with the server update.当我们进行此更新时,我们需要防止现有用户再使用旧版本(以防新版本未自动更新),因为某些功能可能不适用于服务器更新。

Is there any options in iOS and Andorid developer centers (for that app info) to mark that older version as cannot be used any more or to atleaset notify the users that they have to install the latest version when they try to use that app(incase they have switched off auto updates) iOS 和 Andorid 开发人员中心(对于该应用程序信息)是否有任何选项可以将该旧版本标记为不能再使用或至少通知用户他们在尝试使用该应用程序时必须安装最新版本(incase他们已经关闭了自动更新)

I have seen there are options to do it from the code by comparing it with the existing version and to notify the user.我已经看到有一些选项可以通过将代码与现有版本进行比较并通知用户来执行此操作。 But since we have not implemented any such mechanism in our apps which is currently in the App stores, I don't think we can do the code based option for this version.但是由于我们尚未在目前在 App Store 中的应用程序中实现任何此类机制,因此我认为我们无法为此版本执行基于代码的选项。 That's why we are looking for other options like doing it though App store confugration etc..这就是为什么我们正在寻找其他选项,例如通过 App Store 配置等进行操作。

Unfortunately, there is no solid solution for this issue.不幸的是,这个问题没有可靠的解决方案。

One workaround if your app make any API calls, you can modify the response to let user know whey need to update the app.如果您的应用程序进行任何 API 调用,一种解决方法是,您可以修改响应以让用户知道他们需要更新应用程序。 Or else, perhaps you can send a push notification to let existing user know they need to update the app.或者,也许您可​​以发送推送通知,让现有用户知道他们需要更新应用程序。

Futhermore, you might need to implement force update mechanism, which is basically check user's current version with your latest app version, so you will know which version they are currently using.此外,您可能需要实施强制更新机制,这基本上是使用您最新的应用程序版本检查用户的当前版本,因此您将知道他们当前使用的是哪个版本。 There are a few ways to do this:有几种方法可以做到这一点:

  1. Server side: You need to send app version to server and if it is not latest version, stop user and force user to go to AppStore/Playstore to update.服务器端:您需要将应用程序版本发送到服务器,如果不是最新版本,请停止用户并强制用户去 AppStore/Playstore 更新。
  2. If you are using Firebase, you can take a look at Firebase Remote Config .如果您使用 Firebase,您可以查看Firebase 远程配置 I have not used it but I believe it would work.我没有使用过它,但我相信它会起作用。

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

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