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

No update found #11

Open
GeylanKalafMohe opened this issue Sep 5, 2023 · 4 comments
Open

No update found #11

GeylanKalafMohe opened this issue Sep 5, 2023 · 4 comments

Comments

@GeylanKalafMohe
Copy link

When reducing the version in yaml purposely the function to check update is still giving updateAvailable is false where all other values are null when invoking the platform channel
Screenshot 2023-09-05 at 3 48 35 PM
Screenshot 2023-09-05 at 3 48 55 PM

@GeylanKalafMohe
Copy link
Author

final upgradeInfo = await HuaweiInAppUpdate.checkForUpdate(); if (upgradeInfo.updateAvailable) { // ignore: use_build_context_synchronously HuaweiInAppUpdate.showUpdateDialog( context: MyApp.globalNavigatorKey.currentContext!, force: false, ); }

@darkang3lz92
Copy link
Owner

darkang3lz92 commented Sep 6, 2023

Hi @GeylanKalafMohe, I notice that you are running debug build and I assume you are most probably signing with debug keystore. Please check the build is using the same keystore for app signing as the AppGalleryConnect AAB/APK you uploaded previously, so you may need to run with release build instead.

If you want run it as debug, you may need configure buildTypes in the app/build.gradle to sign the app with release keystore.

signingConfigs {
    release {
        // setup your keystore info here
        storeFile = keystoreFilepath
        storePassword = keystorePassword
        keyAlias = keyAlias
        keyPassword = keyPassword
    }
}

buildTypes {
    debug {
        // sign debug build with release keystore
        signingConfig signingConfigs.release
    }
    release {
        // for release build

    }
}

@GeylanKalafMohe
Copy link
Author

Even when signing with release config and building with release its still the same

Hi @GeylanKalafMohe, I notice that you are running debug build and I assume you are most probably signing with debug keystore. Please check the build is using the same keystore for app signing as the AppGalleryConnect AAB/APK you uploaded previously, so you may need to run with release build instead.

If you want run it as debug, you may need configure buildTypes in the app/build.gradle to sign the app with release keystore.

signingConfigs {
    release {
        // setup your keystore info here
        storeFile = keystoreFilepath
        storePassword = keystorePassword
        keyAlias = keyAlias
        keyPassword = keyPassword
    }
}

buildTypes {
    debug {
        // sign debug build with release keystore
        signingConfig signingConfigs.release
    }
    release {
        // for release build

    }
}

@darkang3lz92
Copy link
Owner

Not reproducible from my side. I'm able to retrieve the upgrade info using the /example/lib/main.dart.

Can you make sure that:

  1. applicationId is correct in build.gradle.
  2. agconnect-services.json is added in the project.
  3. correct keystore signing (do not confuse it with upload keystore if you using huawei app signing)
  4. lower version code

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

2 participants