Comments (4)
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.
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.
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 theapp/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.
Not reproducible from my side. I'm able to retrieve the upgrade info using the /example/lib/main.dart.
Can you make sure that:
- applicationId is correct in
build.gradle
. agconnect-services.json
is added in the project.- correct keystore signing (do not confuse it with upload keystore if you using huawei app signing)
- lower version code
from huawei_in_app_update.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from huawei_in_app_update.