Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

ReleaseNotes returns 'null' for Android #92

Open
zenkog opened this issue Feb 28, 2022 · 4 comments
Open

ReleaseNotes returns 'null' for Android #92

zenkog opened this issue Feb 28, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@zenkog
Copy link

zenkog commented Feb 28, 2022

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!
@timtraversy
Copy link
Owner

Could you link to your play store listing?

@zenkog
Copy link
Author

zenkog commented Mar 3, 2022

https://play.google.com/store/apps/details?id=com.vitell.colormatters

Could you link to your play store listing?

@timtraversy
Copy link
Owner

Are you based outside the US? I realized we are checking in the code for the string "What's New". Maybe that's failing when the page is in a different language.

@zenkog
Copy link
Author

zenkog commented Apr 12, 2022

The page is in English. There is no other language. Still having the same issue

Are you based outside the US? I realized we are checking in the code for the string "What's New". Maybe that's failing when the page is in a different language.

@timtraversy timtraversy added the bug Something isn't working label Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants