Skip to content

ReleaseNotes returns 'null' for Android #92

@zenkog

Description

@zenkog

This is my code:

 @override
  void initState() {
    super.initState();
    final newVersion = NewVersion();
    _checkVersion(newVersion);
  }

  void _checkVersion(NewVersion newVersion) async {
    final status = await newVersion.getVersionStatus();
   
    if(status != null) {
      debugPrint(status.releaseNotes); // Always returns null for Android but works for iOS
      debugPrint(status.appStoreLink); // Works for both iOS and Android
      debugPrint(status.localVersion); // Works for both iOS and Android
      debugPrint(status.storeVersion); // Works for both iOS and Android
    }
  }

Somehow status.releaseNotes works well on iOS but it always returns null on Android.
Strangely, all the other values works (i.e: appStoreLink, localVersion, storeVersion, etc).

Anyone knows what I'm missing here?

I'm using new_version: ^0.3.0 in my pubspec.yaml

And just in case someone asks, the release notes on Google Play Console is not empty.

Here is my `flutter doctor -v`
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.1 21C52 darwin-x64, locale en-US)
    • Flutter version 2.8.1 at /Users/ME/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (2 months ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Volumes/ME/Applications/Android/sdk
    • Platform android-32, build-tools 32.0.0
    • ANDROID_HOME = /Volumes/ME/Applications/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

[✓] VS Code (version 1.64.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.34.0

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 98.0.4758.109

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions