app_versioning
1.5.0, released 3 weeks ago by levinriegner.com
Tracks app version and prompts users to update via Play/App Store
What it does
It checks the current app version against a minimum version defined in a backend or Firebase Remote Config. If an update is available it can force or suggest the user to update the app.
AI-written summary of version 1.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to enforce a minimum app version for security or feature reasons
- You want to offer optional or mandatory update prompts on Android and iOS
- You need to track version history for onboarding or migrations
Skip it when
- You only need a simple in-app update check without backend integration
- You prefer a lightweight solution without external dependencies
Strengths
- Easy to integrate with both Android and iOS
- Supports optional and mandatory updates
- Customizable via API or Firebase Remote Config
- Tracks version history for analytics or migrations
Weaknesses
- Depends on several external packages (in_app_update, upgrader, version_tracker)
- Requires Firebase setup if using the Firebase backend
- May add extra weight to the app
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 7
Add the package to pubspec, configure Firebase if using that backend, provide app store IDs, and call AppVersioning.initialise in main.
```dart
final appVersioning = AppVersioning.firebaseService(
remoteConfigKeys: const RemoteConfigKeys(
minimumIosVersionKey: "minimumIosVersion",
minimumAndroidVersionKey: "minimumAndroidVersion",
),
updateConfig: const UpdateConfig(
appStoreAppId: "1234567890",
playStoreAppId: "org.example.versioning",
appstoreCountryCode: 'US',
),
);
await appVersioning.tracker.track();
final info = await appVersioning.getAppUpdateInfo();
if (info.isUpdateAvailable) {
// show update prompt
}
```Alternatives
Packages that do the same job and could replace app_versioning.
- pwa_install
Prompt mobile web users to install the Flutter app as a PWA on demand.
50Compare - new_version
Checks if the user has the latest app version and prompts an update link.
46Compare
Works with
Packages commonly used together with app_versioning: ones it builds on, ones built on it, and its own family.
- url_launcherapp_versioning depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- shared_preferencesapp_versioning depends on itFlutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.
- package_info_plusapp_versioning depends on itFlutter plugin to query app package info like version, build number and installer store.
- firebase_remote_configapp_versioning depends on itFlutter plugin for Firebase Remote Config API
- in_app_updateapp_versioning depends on itTriggers official Google Play In-App Updates on Android devices.
- upgraderapp_versioning depends on itPrompt users to upgrade when a newer version of the app is available in the store.