FLUTTER ECOSYSTEM

jonasbark/flutter_in_app_update

Flutter 插件:使用官方 Android API 在 Android 上启用应用内更新。

flutter_in_app_update 项目封面
Stars
360
Forks
97
最近推送(UTC)
2026年7月3日
项目状态
未归档
jonasbark GitHub avatar
GITHUB User

jonasbark ↗

CTO @ PropOps GmbH | CTO @ FieldBots GmbH -- Main focus on Flutter, Spring Boot, Azure Cloud | Stripe Community Expert

PropOps GmbH官方网站 ↗
语言DartKotlinRubyObjective-C

此仓库发布的插件

使用的依赖

依赖清单 2 项
  • flutter{"sdk":"flutter"}
  • flutter_test开发依赖{"sdk":"flutter"}

所在榜单

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

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

https://2.bp.blogspot.com/-9V4ZsdRRnIA/XNSYN-do_OI/AAAAAAAAI90/2yFBsTij0kcibkGRuB79fS_jZKcy-APdQCLcBGAs/s1600/Screen%2BShot%2B2019-05-09%2Bat%2B2.13.58%2BPM.png

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.