native_updater
0.2.0, released 9 months ago by digitalventures.au
Prompt users to update the app with a native dialog for Android and iOS.
What it does
Displays a native alert dialog on Android and iOS prompting users to update the app. It supports both forced updates and flexible update flows where users can choose to skip or update later.
AI-written summary of version 0.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to prompt users to update to a newer app version.
- You want to enforce a minimum supported app version using custom logic.
Skip it when
- You want automated background update checks without custom logic.
- You are not targeting Android or iOS.
Strengths
- Provides native UI for both Material (Android) and Cupertino (iOS).
- Supports custom app store URLs and alert text labels.
Weaknesses
- Requires custom logic to determine when an update is available.
- iOS Info.plist setup required to display the app name.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
For iOS, add CFBundleDisplayName to Info.plist to show the App Name in the Cupertino Alert Dialog.
NativeUpdater.displayUpdateAlert(
context,
forceUpdate: true,
);Alternatives
Packages that do the same job and could replace native_updater.
- flutter_app_badge
Update the app badge on the launcher for iOS and macOS.
50Compare
Works with
Packages commonly used together with native_updater: ones it builds on, ones built on it, and its own family.
- url_launchernative_updater depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- package_info_plusnative_updater depends on itFlutter plugin to query app package info like version, build number and installer store.
- in_app_updatenative_updater depends on itTriggers official Google Play In-App Updates on Android devices.