Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrader doesn't seem to work with CupertinoApp #482

Open
gaieges opened this issue Jan 13, 2025 · 0 comments
Open

Upgrader doesn't seem to work with CupertinoApp #482

gaieges opened this issue Jan 13, 2025 · 0 comments

Comments

@gaieges
Copy link

gaieges commented Jan 13, 2025

I have a pretty simple app who's root is using CupertinoApp, and when I use the upgrader like so, it seems to get instantiated and throws some logs, but doesn't present the popup. Any ideas as to how to work around this?

With CupertinoApp

    return CupertinoApp(
      home: UpgradeAlert(
        dialogStyle: UpgradeDialogStyle.cupertino,
        upgrader: Upgrader(
          debugDisplayAlways: true,
        ),
        child: const Center(
          child: Text('Hello'),
        ),
      ),
    );

Logs:

flutter: upgrader: instantiated
flutter: upgrader: build UpgradeAlert
flutter: upgrader: need to evaluate version

Using MaterialApp

Code:

    return MaterialApp(
      home: UpgradeChecker(
        child: const Center(
          child: Text('Hello'),
        ),
      ),
    );

Logs (a little more extensive):

flutter: upgrader: instantiated
flutter: upgrader: initialize called
flutter: upgrader: build UpgradeAlert
flutter: upgrader: initializing
flutter: upgrader: operatingSystem: ios, version: Version 18.2 (Build 22C150)
flutter: upgrader: packageInfo packageName: io.custompod.app
flutter: upgrader: packageInfo appName: CustomPod.io
flutter: upgrader: packageInfo version: 2.0.0
flutter: upgrader: current locale: en_US
flutter: upgrader: countryCode: US
flutter: upgrader: languageCode: en
flutter: upgrader: download: https://itunes.apple.com/lookup?bundleId=io.custompod.app&country=US&lang=en&_cb=1736789092080513
flutter: upgrader: response statusCode: 200
flutter: upgrader: UpgraderAppStore: version info: appStoreListingURL: https://apps.apple.com/us/app/custompod/id6736601107?uo=4, appStoreVersion: 3.1.0, installedVersion: 2.0.0, isCriticalUpdate: null, minAppVersion: null, releaseNotes: - Ability to change voices
- Update to high quality voices and audio
- Ability to schedule generation of briefings at any time in the day
- Minor UI tweaks
flutter: upgrader: need to evaluate version
flutter: upgrader: blocked: false
flutter: upgrader: debugDisplayAlways: true
flutter: upgrader: debugDisplayOnce: false
flutter: upgrader: hasAlerted: false
flutter: upgrader: shouldDisplayUpgrade: true
flutter: upgrader: shouldDisplayReleaseNotes: true
flutter: upgrader: current locale: en_US
flutter: upgrader: languageCode: en
flutter: upgrader: showTheDialog title: Update App?
flutter: upgrader: showTheDialog message: A new version of CustomPod.io is available! Version 3.1.0 is now available-you have 2.0.0.
flutter: upgrader: showTheDialog releaseNotes: - Ability to change voices
- Update to high quality voices and audio
- Ability to schedule generation of briefings at any time in the day
- Minor UI tweaks
flutter: upgrader: onCanPop called

Version

  upgrader:
    dependency: "direct main"
    description:
      name: upgrader
      sha256: eb5a4888873d7998605306c4212491efdff8e59ee609d946dbcd6df83598d004
      url: "https://pub.dev"
    source: hosted
    version: "11.3.1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant