flutter_update_checker 0.1.1 flutter_update_checker: ^0.1.1 copied to clipboard
Simple package to check update for Android (Google Play, App Gallery, RuStore) and iOS (AppStore)
flutter_update_checker #
Simple package to check update for Android (Google Play, App Gallery, RuStore) and iOS (AppStore). It helps developers notify users about new versions of the app, ensuring that they always have the latest features and bug fixes.
Features #
- Getting the version/checking update from the store where the application was downloaded
- Getting a version from another store (except Google Play)
- Opening link to store
Platform support #
Feature | Android | iOS |
---|---|---|
App Store | ✅ | ✅ |
App Gallery | ✅ | ✅ |
Google Play | (Only if from GP) | |
RuStore | ✅ | ✅ |
Getting started #
For iOS you have to add LSApplicationQueriesSchemes as Array param to Info.plist and add itms-apps as one of params in this array to link appstore.
Code:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>itms-apps</string>
</array>
Usage #
Check example
in /example
folder.
import 'package:flutter_update_checker/flutter_update_checker.dart';
final updateChecker = UpdateStoreChecker(
iosAppStoreId: 564177498,
androidAppGalleryId: 'C101104117',
androidAppGalleryPackageName: 'com.vkontakte.android',
androidRuStorePackage: 'com.vkontakte.android',
androidGooglePlayPackage: 'com.vkontakte.android',
);
// Check update
bool isUpdateAvailable = await updateChecker.checkUpdate();
// Get version from Store
String storeVersion = await updateChecker.getStoreVersion();
// Open Store Link
await updateChecker.update();