Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to alert testing users for a new version of the Internal Testing Version #454

Open
kndrckjvr opened this issue Sep 27, 2024 · 0 comments

Comments

@kndrckjvr
Copy link

kndrckjvr commented Sep 27, 2024

I wanted to test out the alert dialog for our Internal Testing Users and wanted to use the AppCast Sample file to trigger the update. but testing out in my test device first as we just started using it, since the current version of testing application is 1.0.4, I needed to release a 2.0.0 or something like that, for this one I have used the testappcast.xml in this repository but it is not triggering the dialog.

I/flutter ( 3200): upgrader: instantiated
I/flutter ( 3200): upgrader: initialize called
I/flutter ( 3200): upgrader: build UpgradeAlert
I/flutter ( 3200): upgrader: instantiated
I/flutter ( 3200): upgrader: build UpgradeAlert
I/flutter ( 3200): upgrader: initializing
I/flutter ( 3200): upgrader: operatingSystem: android, version: XXXX
I/flutter ( 3200): upgrader: packageInfo packageName: com.x.x
I/flutter ( 3200): upgrader: packageInfo appName: x
I/flutter ( 3200): upgrader: packageInfo version: 1.0.4
I/flutter ( 3200): upgrader: current locale: en_SG
I/flutter ( 3200): upgrader: countryCode: SG
I/flutter ( 3200): upgrader: languageCode: en
I/flutter ( 3200): upgrader: instantiated
I/flutter ( 3200): upgrader: build UpgradeAlert
I/flutter ( 3200): upgrader: UpgraderAppcastStore item count: 4
I/flutter ( 3200): upgrader: UpgraderAppcastStore best item version: 5.0
I/flutter ( 3200): upgrader: UpgraderAppcastStore critical update item version: 2.0
I/flutter ( 3200): upgrader: UpgraderAppcastStore: version info: appStoreListingURL: null, appStoreVersion: 5.0.0, installedVersion: 1.0.4, isCriticalUpdate: true, minAppVersion: null, releaseNotes: null

  upgrader:
    dependency: "direct main"
    description:
      name: upgrader
      sha256: a8751904c13f7699bce3b28d8eedb6260e1c25311b75d4b712faeaedd996b7cc
      url: "https://pub.dev"
    source: hosted
    version: "11.2.0"

This is my main method.

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await Upgrader.clearSavedSettings();

  runApp(const MyApp());
}

This is the sample implementation in our Stateful Widget.

  static const appcastURL =
      'https://raw.githubusercontent.com/larryaasen/upgrader/master/test/testappcast.xml';
  final upgrader = Upgrader(
    storeController: UpgraderStoreController(
      onAndroid: () => UpgraderAppcastStore(appcastURL: appcastURL),
    ),
  );

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: UpgradeAlert(
      upgrader: upgrader,
      ),
      child: Scaffold(...),
     );
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant