Coder Social home page Coder Social logo

Comments (4)

GeylanKalafMohe avatar GeylanKalafMohe commented on July 2, 2024

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

from huawei_in_app_update.

darkang3lz92 avatar darkang3lz92 commented on July 2, 2024

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

    }
}

from huawei_in_app_update.

GeylanKalafMohe avatar GeylanKalafMohe commented on July 2, 2024

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

    }
}

from huawei_in_app_update.

darkang3lz92 avatar darkang3lz92 commented on July 2, 2024

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

from huawei_in_app_update.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.