패키지, 저장소 및 앱 카테고리 검색

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 메타데이터를 확인하여 사용자가 최신 버전을 사용하고 있는지 여부를 판단하는 데 도움을 줍니다. Android, iOS, macOS, Windows, Linux 등 여러 플랫폼을 지원하여 기기 간 앱 업데이트 관리에 이상적입니다. 이 패키지는 공식 스토어에서 버전 정보를 가져와 업데이트가 가능할 때 사용자에게 알립니다. 이를 통해 사용자 유지율을 높이고 최신 기능 및 보안 패치에 접근할 수 있도록 합니다.

사용 사례

  • 새로운 버전이 사용 가능할 때 사용자에게 업데이트하도록 요청
  • 앱 시작 시 업데이트 확인
  • 앱 내 업데이트 대화 상자와 통합
  • 기업 앱의 버전 준수 상태 모니터링
  • 크로스 플랫폼 업데이트 확인 지원

주요 기능

  • 크로스 플랫폼 지원 (Android, iOS, macOS, Windows, Linux)
  • 앱 스토어에서 버전 정보를 가져옵니다
  • 버전 비교를 위한 간단한 API
  • 사용자 지정 가능한 업데이트 확인 주기
  • 내장 알림 처리

적합한 대상

  • 자동 업데이트 감지가 필요한 앱
  • 버전 제어가 필요한 기업용 애플리케이션
  • 다중 운영 체제를 대상으로 하는 앱
  • 업데이트 확인을 위한 최소 설정을 원하는 개발자
  • 엄격한 버전 정책을 가진 프로젝트

고려 사항

  • 버전을 확인하려면 인터넷 연결이 필요합니다
  • 스토어 외 배포를 위해 맞춤 설정이 필요할 수 있습니다
  • 공식 앱 스토어 버전 데이터에 한정
  • 오프라인 우선 앱에는 적합하지 않습니다
  • 외부 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.