in_app_update
5.0.0, released 5 months ago by jonasbark.de
Triggers official Google Play In-App Updates on Android devices.
What it does
Enables Flutter applications on Android to check for and execute in-app updates using the official Google Play Core APIs. It supports both immediate (full-screen) and flexible (background download) update flows. It provides metadata like staleness, priority, and update availability directly from the Play Store.
AI-written summary of version 5.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Distributing an Android app via Google Play and wanting to prompt or force users to update without leaving the app
- Implementing background flexible downloads or immediate critical update flows on Android
Skip it when
- Building for iOS, desktop, or web, as the official API is Android-only and throws not-implemented exceptions
- Distributing via third-party stores or sideloading, since it requires the Google Play Store
Strengths
- Direct wrapper around official Google Play Core In-App Update APIs
- Supports both immediate and flexible update workflows
- Exposes update metadata such as staleness days and priority
Weaknesses
- Android-only; calling methods on iOS causes not-implemented exceptions
- Cannot be tested locally outside of Google Play tracks
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Requires Android API 21+ and must be tested via Google Play (e.g., internal testing track).
InAppUpdate.checkForUpdate().then((info) {
if (info.updateAvailability == UpdateAvailability.updateAvailable) {
InAppUpdate.performImmediateUpdate();
}
});Alternatives
Packages that do the same job and could replace in_app_update.
- dynamic_app_icon_flutter_plus
Change your Flutter app launcher icon at runtime on Android and iOS.
64Compare - flutter_ble_peripheral
Set a device into BLE peripheral mode and advertise custom services.
86Compare - nordic_dfu
Perform Device Firmware Updates on Nordic nRF51 and nRF52 chips.
85Compare - force_update_helper
Shows a remotely controlled force update prompt for iOS and Android apps.
84Compare
Works with
Packages commonly used together with in_app_update: ones it builds on, ones built on it, and its own family.
- king_cacheBuilt on in_app_updateFile‑ and IndexedDB‑based cache for API responses and markdown content.
- app_versioningBuilt on in_app_updateTracks app version and prompts users to update via Play/App Store
- native_updaterBuilt on in_app_updatePrompt users to update the app with a native dialog for Android and iOS.