update_available
3.3.0, released 2 months ago by mateusfccp.me
Check if an update is available for your Flutter app on Android and iOS.
What it does
Provides a single asynchronous function to check update availability for your app based on published versions on Android and iOS. Returns a sealed Availability class indicating whether an update is available, no update is available, or the status is unknown.
AI-written summary of version 3.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want support for both iOS and Android update checks
- You want the bare minimum information about update availability to build your own custom upgrade screen
Skip it when
- You want built-in user interfaces or pre-made alert and card widgets for updates
- You are testing Android updates locally without publishing an app bundle to Google Play Internal App Sharing
Strengths
- Simple API with a single function getUpdateAvailability
- Supports both iOS and Android platforms
- Exposes sealed class Availability for exhaustive switch-case handling
Weaknesses
- Does not provide any built-in user interfaces or dialogs
- Android implementation requires setting up Internal App Sharing and publishing test app bundles to properly test
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Add dependency to pubspec.yaml. Android testing requires setting up Google Play Internal App Sharing and app signing.
void printAvailability() async {
final updateAvailability = await getUpdateAvailability();
final text = switch (availability) {
UpdateAvailable() => "There's an update to you app! Please, update it so you have access to the latest features!",
NoUpdateAvailable() => 'No update is available for your app.',
UnknownAvailability() => "It was not possible to determine if there is or not an update for your app.",
};
print(text);
}Alternatives
Packages that do the same job and could replace update_available.
- in_app_update
Triggers official Google Play In-App Updates on Android devices.
81Compare - upgrader
Prompt users to upgrade when a newer version of the app is available in the store.
91Compare - flutter_app_update
A simple lightweight and customizable version update library for Flutter
61Compare - flutter_upgrade_version
Get package info, Apple Store version details, and manage Android in-app updates.
79Compare