https://github.com/ziqq/flutter_in_store_app_version_checker
A lightweight flutter plugin to check if your app is up-to-date on GooglePlay or AppStore
https://github.com/ziqq/flutter_in_store_app_version_checker
android dart flutter ios package plugin
Last synced: about 2 months ago
JSON representation
A lightweight flutter plugin to check if your app is up-to-date on GooglePlay or AppStore
- Host: GitHub
- URL: https://github.com/ziqq/flutter_in_store_app_version_checker
- Owner: ziqq
- License: mit
- Created: 2023-05-17T11:07:26.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-23T14:00:23.000Z (2 months ago)
- Last Synced: 2025-04-23T14:27:30.605Z (2 months ago)
- Topics: android, dart, flutter, ios, package, plugin
- Language: Dart
- Homepage:
- Size: 446 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
[](https://pub.dev/packages/flutter_in_store_app_version_checker)
[](https://pub.dev/packages/flutter_in_store_app_version_checker/score)
[](https://pub.dev/packages/flutter_in_store_app_version_checker/score)
[](https://codecov.io/gh/ziqq/flutter_in_store_app_version_checker)
[](https://pub.dev/packages/flutter_lints)# flutter_in_store_app_version_checker
## Description
This package is used to check if your app has a new version on playstore or apple app store. Or you can even check what is the latest version of another app on playstore or apple app store.
## Supported platforms
This package supports checking for app updates only on the following platforms:
| Platform | Description |
|--------------|---------------------------------------|
| `Android` | GooglePlay, ApkPure |
| `IOS` | Apple AppStore |Other platforms, such as `Web`, `Windows`, `Linux`, etc., are not supported.
## Supported Android Stores
The package supports checking for updates through the following Android store types:
| Android store type | Description |
| ------------------------------ | ----------------------------- |
| `AndroidStore.googlePlayStore` | The default Google Play Store |
| `AndroidStore.apkPure` | The alternative ApkPure store |You can specify the store using the `androidStore` parameter:
```dart
final _checker = InStoreAppVersionChecker(
androidStore: AndroidStore.apkPure, // Use apkPure instead of Google Play
);
```## Installation
Add InStoreAppVersionChecker to your pubspec:
```yaml
dependencies:
flutter_in_store_app_version_checker: any # Or the latest version on Pub
```## Example
### Initialize
```dart
final _checker = InStoreAppVersionChecker();
```#### Or
```dart
final _checker = InStoreAppVersionChecker(
appId: 'Specify the app id', // Optional
currentVersion: 'Specify the current version', // Optional
);```
### Usage
```dart
@override
void initState() {
super.initState();
checkVersion();
}Future checkVersion() async {
final result = await _checker.checkUpdate();
print('App url : ${result.appURL}');
print('Can update : ${result.canUpdate}');
print('Current version : ${result.currentVersion}');
print('New version : ${result.newVersion}');
if (result.errorMessage != null) print('Error: ${result.errorMessage}');
};
```### The results
| Result | Description |
| ------------------------------ | --------------------------------- |
| `appURL` | The link to the app’s store page |
| `canUpdate` | `true` if an update is available |
| `currentVersion` | The current version of the app |
| `newVersion` | The new version if available |
| `errorMessage` | An error message (if any) |### Use on Apk Pure Store
```dart
final _checker = InStoreAppVersionChecker(
appId: 'Specify the app id',
androidStore: AndroidStore.apkPure,
);```
## Changelog
Refer to the [Changelog](https://github.com/ziqq/flutter_in_store_app_version_checker/blob/main/CHANGELOG.md) to get all release notes.
## Maintainers
[Anton Ustinoff (ziqq)](https://github.com/ziqq)
## License
[MIT](https://github.com/ziqq/flutter_in_store_app_version_checker/blob/main/LICENSE)
## Funding
If you want to support the development of our library, there are several ways you can do it:
- [Buy me a coffee](https://www.buymeacoffee.com/ziqq)
- [Support on Patreon](https://www.patreon.com/ziqq)
- [Subscribe through Boosty](https://boosty.to/ziqq)## Coverage