ITADN

fix: The hot update cannot be detected.

#398Opensssolinjie 创建于 2025-07-22
bug
S
sssolinjiecommented
app_id: de3c0af9-b1df-4a3c-9694-5400674772ce <img width="400" height="313" alt="Image" src="https://github.com/user-attachments/assets/bc194591-0a09-4902-abcb-20050d5717f9" /> ```dart Future<void> _checkForUpdates() async { final status = await updater.checkForUpdate(track: UpdateTrack.stable); if (status == UpdateStatus.outdated) { print('lbw--hot-await update'); try { await updater.update(track: UpdateTrack.stable); showCustomDialog( context: Get.context!, centerTitle: '$hotstr,是否重启APP?', rightCallback: () { Restart.restartApp(); }); } on UpdateException catch (error) { print('lbw--hot-error:${error.message}'); } } else { print('lbw--hot-app is new'); } } ``` ``` [shorebird] Sending patch check request: PatchCheckRequest { app_id: "de3c0af9-b1df-4a3c-9694-5400674772ce", channel: "stable", release_version: "15.001+2025071501", platform: "ios", arch: "aarch64" } flutter: lbw--hot-app is new [shorebird] Sending patch check request: PatchCheckRequest { app_id: "de3c0af9-b1df-4a3c-9694-5400674772ce", channel: "stable", release_version: "15.001+2025071501", platform: "ios", arch: "aarch64" } flutter: lbw--hot-app is new ``` shorebird_code_push: ^2.0.2
9 条评论