我如何强制用户将Flutter应用更新为最新版本?

发布于 2025-01-23 03:10:59 字数 189 浏览 1 评论 0原文

我已经使用flutter应用程序上传了一个测试功能,该功能打开admin> admin面板而无需凭据。我现在已经纠正了问题,但是有些用户使用该应用程序的有缺陷版本。有什么办法强迫用户更新应用程序吗?或从Google Play Console禁用一些特定版本? 先感谢您!

I have uploaded the Flutter app with a testing feature that opens the admin panel without credentials. I have now corrected the problem but there are some users using the defective version of the app. Is there any way to force user to update the app? Or disable some specific version from the google play console?
Thank you in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

廻憶裏菂餘溫 2025-01-30 03:10:59

现在,当您发布了错误的应用程序时,您不能强迫任何一个应用程序内置功能(也保存的任何APK都将保持脆弱)。最好的情况是现在将API端点更新为新的端点并阻止先前的端点。)

构建一个新应用:

  1. 在服务器端的授权中创建新的端点,以便服务器可以决定用户可以做什么而不是仅仅是客户端。
  2. 使用 https://pub.dev/packages/packages/in_app_update (仅Android)来处理更新(optartional) )

3.如果服务器具有更大的最小允许的构建号,则可以使用强制更新的服务检查当前的应用程序构建(显示一个内置的屏幕,需要更新该应用程序)。

As you have rolled out the faulty application now you cannot force any one to upgrade as that app has no built in feature (also any apk saved would remain vulnerable). Best case is now update your api endpoints to a new endpoint and block the previous endpoints.)

Build a new app:

  1. Create new endpoints with authorization at server end so that server can decide what can a user can do instead of just client.
  2. use https://pub.dev/packages/in_app_update (Android only) for handling the updates (optional)

3.You can check current app build with a service which forces update (Show a inbuilt screen that the app compulsorily needs to be updated) if server has a greater minimum allowed build number.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文