TrangLeQuynh / flutter-upgrade-version

BSD 3-Clause "New" or "Revised" License
7 stars 3 forks source link

Why I can't get any app store information in my app? #36

Closed winsonet closed 8 months ago

winsonet commented 8 months ago

My app has been published to app store, but I can't get any data with below code:

PackageInfo packageInfo = await PackageManager.getPackageInfo();
    print('app name: ${packageInfo.appName}');
    if (Platform.isIOS) {
      VersionInfo? versionInfo = await UpgradeVersion.getiOSStoreVersion(
          packageInfo: packageInfo, regionCode: "US");
          debugPrint(versionInfo.toJson().toString());
    }

just got the below result:

flutter: app name:
flutter: {localVersion: , storeVersion: null, appStoreLink: null, releaseNotes: null, isReviewing: true, canUpdate: false}
winsonet commented 8 months ago

oh, sorry, after stop and rebuild the app, the problem has been solved, thanks!