Closed Kedmanee closed 3 months ago
i think isUpdateAvailable
is your issue, even if you specify minAppVersion it still checks for available version befor showing prompt unless forced by debug flags
if (debugDisplayAlways || (debugDisplayOnce && !_hasAlerted)) {
rv = true;
} else if (!isUpdateAvailable()) {
rv = false;
} else if (isBlocked) {
rv = true;
} else if (isTooSoon() || alreadyIgnoredThisVersion()) {
rv = false;
}
how could i fix it
It says in the log: flutter: upgrader: appStoreVersion: null That means there was no app store version found. Has the app been published? Does the bundle ID match what is on the App Store?
Just add await Upgrader.clearSavedSettings(); in main.dart
@iaohtdev You don't normally call clearSavedSettings()
unless you are using it for testing.
@Kedmanee Is there any solution?
upgrader: dependency: "direct main" description: name: upgrader sha256: "85496acfa024eb9e0c3c835d4c2358a000b21e021e9ca8835f56519ffa5e84f2" url: "https://pub.dev" source: hosted version: "8.2.0"