app_version_checker 1.0.2 copy "app_version_checker: ^1.0.2" to clipboard
app_version_checker: ^1.0.2 copied to clipboard

A simple app version checker only using http request. (iOS and Android only)

example/lib/main.dart

import 'package:app_version_checker/app_version_checker.dart';

main() async {
  try {
    String appId = 'your_app_id';
    CheckerResult remoteVersion = await AppVersionChecker.checkVersion(appId);
    print(remoteVersion);
    // ex) 1.0.0
  } catch (error) {
    print(error);
  }
  try {
    String appId = 'your_app_id';
    bool updateAvailable = await AppVersionChecker.simpleCheck(appId);
    print(updateAvailable);
    // If the version of Playstore of AppStore, returns true. Otherwise, returns false.
  } catch (error) {
    print(error);
  }
}
2
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A simple app version checker only using http request. (iOS and Android only)

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, html, http, package_info

More

Packages that depend on app_version_checker