パッケージ、リポジトリ、アプリカテゴリを検索

new_version_plus のカバー
パッケージ詳細v1.0.1

new_version_plus

ユーザーがFlutterアプリの最新バージョンを持っているか確認します。

AndroidiOSmacOSWindowsLinux
30日間ダウンロード
4.7万
いいね数
195
Pub ポイント
140

パッケージをインストール

flutter pub add new_version_plus

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

new_version_plus パッケージは、アプリストアまたは Google Play のメタデータをチェックすることで、Flutter アプリがユーザーが最新バージョンを使用しているかどうかを判断するのを助けます。Android、iOS、macOS、Windows、Linux など複数のプラットフォームをサポートしており、デバイス間でのアプリ更新管理に最適です。このパッケージは公式ストアからバージョン情報を取得し、更新がある場合にユーザーに通知することで、ユーザーの継続利用を促進し、最新の機能やセキュリティパッチへのアクセスを確保します。

用途

  • 新しいバージョンが利用可能になると、ユーザーに更新を促す
  • アプリ起動時に更新を確認する
  • アプリ内更新ダイアログとの統合
  • エンタープライズアプリのバージョン準拠を監視する
  • クロスプラットフォームの更新チェックをサポート

主な機能

  • クロスプラットフォーム対応(Android、iOS、macOS、Windows、Linux)
  • アプリストアからバージョン情報を取得します
  • バージョン比較のためのシンプルな API
  • 設定可能な更新チェック頻度
  • 組み込み通知処理

適している対象

  • 自動更新検出を必要とするアプリ
  • バージョン管理が必要なエンタープライズアプリケーション
  • 複数のオペレーティングシステムをターゲットにするアプリ
  • 更新チェックのための最小限のセットアップを求める開発者
  • 厳格なバージョン管理ポリシーを持つプロジェクト

注意事項

  • バージョンを確認するにはインターネット接続が必要です
  • ストア外配布用にカスタマイズが必要になる可能性があります
  • 公式アプリストアバージョンのデータに限定
  • オフライン優先のアプリには適していません
  • 外部APIに依存しており、それらにはレート制限が適用される可能性があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

☕ Support Me

If you find this plugin useful, please consider supporting me:

Buy Me a Coffee

Note Original repository: https://pub.dev/packages/new_version

The problem with the original repository is that it will no longer be maintained by the creator, for this reason this repository was created in order to maintain updated code and make respective improvements as long as it is required.

New Version Plus Plugin 🎉

A Flutter plugin that makes it possible to:

  • Check if a user has the most recent version of your app installed.
  • Show the user an alert with a link to the appropriate app store page.

See more at the Dart Packages page.

Screenshots

Installation

Add new_version_plus as a dependency in your pubspec.yaml file.

dependencies:
  new_version_plus: ^0.0.9

Usage

In main.dart (or wherever your app is initialized), create an instance of NewVersionPlus.

final newVersionPlus = NewVersionPlus();

The plugin will automatically use your Flutter package identifier to check the app store. If your app has a different identifier in the Google Play Store or Apple App Store, you can overwrite this by providing values for androidId and/or iOSId.

For iOS: If your app is only available outside the U.S. App Store, you will need to set iOSAppStoreCountry to the two-letter country code of the store you want to search. See http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 for a list of ISO Country Codes.

You can then use the plugin in two ways.

Quickstart

Calling showAlertIfNecessary with your app's BuildContext will check if the app can be updated, and will automatically display a platform-specific alert that the user can use to go to the app store.

newVersionPlus.showAlertIfNecessary(context: context);

Advanced 😎

If you want to create a custom alert or use the app version information differently, call getVersionStatus. This will return a Future<VersionStatus> with information about the local and app store versions of the app.

final status = await newVersionPlus.getVersionStatus();
status.canUpdate // (true)
status.localVersion // (1.2.1)
status.storeVersion // (1.2.3)
status.appStoreLink // (https://itunes.apple.com/us/app/google/id284815942?mt=8)

If you want to present a customized dialog, you can pass your VersionStatus to showUpdateDialog().

newVersionPlus.showUpdateDialog(
  context: context,
  versionStatus: status,
  dialogTitle: 'Custom dialog title',
  dialogText: 'Custom dialog text',
  updateButtonText: 'Custom update button text',
  dismissButtonText: 'Custom dismiss button text',
  dismissAction: () => functionToRunAfterDialogDismissed(),
)

The option was added so that in the android app you can modify the code of your country, with the variable: androidPlayStoreCountry

カテゴリー

依存関係

依存関係一覧 4 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。