Skip to content

fix: The hot update cannot be detected. #398

Description

@sssolinjie

app_id: de3c0af9-b1df-4a3c-9694-5400674772ce

Image
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions