问题原因: 1. checkForUpdate() 未传 force:true,被 UpdateService 内部的60分钟 SharedPreferences 间隔二次节流,导致实际请求被跳过 2. 缺少日志输出,无法诊断检查流程是否执行 修复: - checkForUpdate(force: true) 跳过内部60分钟限制, 因为 MainShell 已有自己的90-300秒随机冷却节流 - 在 initState / dispose / didChangeAppLifecycleState / _checkForUpdateIfNeeded 各关键节点添加 debugPrint 日志, 方便 flutter run 控制台追踪完整检查流程 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| android | ||
| assets | ||
| ios | ||
| lib | ||
| scripts | ||
| test | ||
| .gitignore | ||
| .metadata | ||
| DEVELOPMENT_GUIDE.md | ||
| README.md | ||
| analysis_options.yaml | ||
| pubspec.yaml | ||
README.md
mining_app
A new Flutter project.
Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.