auto_updater icon indicating copy to clipboard operation
auto_updater copied to clipboard

后台检查更新未生效。

Open tangsj opened this issue 1 year ago • 2 comments

autoUpdater.checkForUpdates(inBackground: false); 使用false时,在开发模式下启动应用程序会提示程序更新 。 image 但是如果使用inBackground: true, 程序就不会有任何提示。 这是为何?

tangsj avatar Feb 04 '24 10:02 tangsj

升级Flutter后提示以下错误信息 [ERROR:flutter/shell/common/shell.cc(1015)] The 'auto_updater' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel. See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.

当前flutter 版本 Flutter 3.16.9 • channel stable • https://github.com/flutter/flutter.git Framework • revision 41456452f2 (10 days ago) • 2024-01-25 10:06:23 -0800 Engine • revision f40e976bed Tools • Dart 3.2.6 • DevTools 2.28.5

tangsj avatar Feb 05 '24 01:02 tangsj

经测试只要同一个版本号被点击过忽略些版本,如果 inBackground 设为 true 时将不会有提示

lijy91 avatar Mar 30 '24 13:03 lijy91

@tangsj is your problem solved? I'm getting this error too! can it cause problem or it's ok to be ignored?

GolnazMirzaie avatar Jun 05 '24 15:06 GolnazMirzaie