Search packages, repositories and app categories

in_app_update cover
Package detailsv5.0.0

in_app_update

Enables In App Updates on Android using the official Android APIs.

Android
30-day downloads
375K
Likes
1.3K
Pub points
160

Install package

flutter pub add in_app_update

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The in_app_update package enables seamless in-app updates on Android by leveraging the official Android In-App Updates API. It allows developers to prompt users to update their app directly within the application, improving user retention and ensuring timely delivery of new features and security patches. The package handles both flexible and immediate update flows, providing a smooth upgrade experience without requiring users to visit the Google Play Store manually. It integrates easily into Flutter apps with minimal configuration.

Use cases

  • Prompting users for app updates during runtime
  • Implementing immediate or flexible update strategies
  • Improving app update adoption rates
  • Ensuring users stay on the latest version
  • Reducing dependency on external app stores for updates

Key features

  • Official Android API integration
  • Support for flexible and immediate update types
  • Simple Flutter interface
  • Automatic update status checks
  • Cross-version compatibility

Suitable for

  • Android-only Flutter applications
  • Apps requiring high update compliance
  • Developers managing app lifecycle internally
  • Projects prioritizing user experience during updates
  • Teams using Google Play for distribution

Considerations

  • Limited to Android platform
  • Requires Google Play Services
  • Does not support iOS
  • Needs proper handling of update flow states
  • May require additional permissions or configurations

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

pub package

Maintained by Jonas Bark

in_app_update

Enables In App Updates on Android using the official Android APIs.

https://developer.android.com/guide/app-bundle/in-app-updates

Documentation

The following methods are exposed:

  • Future<AppUpdateInfo> checkForUpdate(): Checks if there's an update available
  • Future<void> performImmediateUpdate(): Performs an immediate update (full-screen)
  • Future<void> startFlexibleUpdate(): Starts a flexible update (background download)
  • Future<void> completeFlexibleUpdate(): Actually installs an available flexible update

Please have a look in the example app on how to use it!

Android

This plugin integrates the official Android APIs to perform in app updated that were released in 2019: https://developer.android.com/guide/app-bundle/in-app-updates

iOS

iOS does not offer such a functionality. You might want to look into e.g. https://pub.dev/packages/upgrader. If you call the methods above on a iOS device you'll run into a not-implemented exception.

Troubleshooting

Getting ERROR_API_NOT_AVAILABLE error

Be aware that this plugin cannot be tested locally. It must be installed via Google Play to work. Please check the official documentation about In App Updates from Google:

https://developer.android.com/guide/playcore/in-app-updates/test

Update does not work on old Android versions

In App Updates are only available from API Versions >= 21, as mentioned here.

Categories

Source repository

Projects using this package

Rankings