skip to Main Content

I am working on a project that require me to compare the app version. I am currently using package_info_plus to get the current app version, but I still can’t manage to get the latest version from the Play Store. Is there anyway to allow me to read the latest version number from the Play Store using my App ID?

2

Answers


  1. i always add a Config API where i return an Object for Latest Version where one property defines its latest version and 2nd one defines is that require to update or not

    API Response Looks like this

    {
    "latestVersion": "1.2.3",
    "isUpdateRequired": true
    }

    Login or Signup to reply.
  2. You can use flutter_app_version_checker: ^0.3.2 for getting app verion name , version , is update available and many more . for more info visit https://pub.dev/packages/flutter_app_version_checker

      _checker.checkUpdate().then((value) {
        print(value.canUpdate); //return true if update is available
        print(value.currentVersion); //return current app version
        print(value.newVersion); //return the new app version
        print(value.appURL); //return the app url
        print(value.errorMessage); //return error message if found else it will return null
    });
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search