updater
0.2.5, released a year ago by marsad.dev
Check for custom in-app updates and download APKs on Android.
What it does
Checks a remote JSON file for application updates, displays an update dialog, and downloads/installs the update file on Android devices.
AI-written summary of version 0.2.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You distribute Android apps outside the Google Play Store and need a custom in-app update mechanism.
- You want to fetch update metadata from a remote JSON file.
Skip it when
- You are building for iOS (iOS is not supported by this plugin).
- You prefer using official platform stores (like Google Play In-App Updates).
Strengths
- Supports pause, resume, and cancel for ongoing downloads.
- Customizable dialog texts, UI elements, and force-update support via minSupport.
Weaknesses
- Does not support iOS.
- Requires manual setup of the REQUEST_INSTALL_PACKAGES permission on Android.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Add the REQUEST_INSTALL_PACKAGES permission to the AndroidManifest.xml and specify the version code in pubspec.yaml.
UpdaterController controller = UpdaterController(listener: (UpdateStatus status) {});
Updater updater = Updater(context: context, controller: controller, url: 'JSON_FILE_URL');
updater.check();Alternatives
Packages that do the same job and could replace updater.
- device_safety_info
Provides root, jailbreak, debugger, screenshot, VPN and other security checks for Flutter apps.
82Compare - check_app_version
Check app version against app stores or remote JSON and display update dialogs.
74Compare - in_app_update
Triggers official Google Play In-App Updates on Android devices.
81Compare - version_check
Check iOS, Android, and Mac store versions and show update alerts.
58Compare
Works with
Packages commonly used together with updater: ones it builds on, ones built on it, and its own family.
- platformupdater depends on itCross‑platform abstraction for querying runtime platform info in Dart.
- path_providerupdater depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- dioupdater depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- open_filexupdater depends on itPlugin to open files via native apps, returning a string result