搜尋套件、儲存庫與 APP 分類

in_app_update 封面
套件詳情v5.0.0

in_app_update

使用官方 Android API 在 Android 上啟用應用內更新。

Android
近 30 天下載
37.5萬
喜歡數
1310
Pub 分數
160

安裝套件

flutter pub add in_app_update

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

in_app_update 套件透過利用官方 Android 應用內更新 API,在 Android 上實現無縫應用內更新。它允許開發者在應用程式內部直接提示使用者更新應用,進而提升使用者留存率,並確保新功能與安全修補能即時傳遞。此套件處理彈性更新與立即更新兩種流程,提供順暢的升級體驗,無需使用者手動造訪 Google Play 商店。該套件可輕鬆整合至 Flutter 應用,設定簡單。

適用情境

  • 在執行時提示使用者更新應用程式
  • 實施即時或靈活的更新策略
  • 提升應用程式更新的採用率
  • 確保使用者停留在最新版本
  • 減少對外部應用商店更新的依賴

主要特色

  • 官方 Android API 結合
  • 支援彈性且即時的更新類型
  • 簡單的 Flutter 界面
  • 自動更新狀態檢查
  • 跨版本相容性

適合對象

  • 僅限 Android 的 Flutter 應用
  • 需要高更新合規性的應用
  • 開發人員內部管理應用生命週期
  • 在更新期間優先考慮使用者體驗的專案
  • 使用 Google Play 進行分發的團隊

使用建議

  • 僅限 Android 平台
  • 需要 Google Play 服務
  • 不支援 iOS
  • 需要正確處理更新流程狀態
  • 可能需要額外的權限或設定

原始 README

以下為關聯原始碼儲存庫的 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

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.

所屬分類

原始碼儲存庫

使用此套件的專案

所在榜單