description |
---|
Update the app in case of new release/enhancements |
Show Update App popup to end users in case there is a new release in the Google Play Store or IOS App Store.
Add the file (link below) in the common-masters MDMS -
mdms-mgramseva/AppVersion.json at UAT · misdwss/mdms-mgramseva
Update the version in the above-mentioned file whenever a new release is deployed to the Play Store or App Store.
{% hint style="info" %} Note: The version deployed in the Play Store and App Store should match the version in mdms-mgramseva/AppVersion.json at UAT · misdwss/mdms-mgramseva {% endhint %}
{% code lineNumbers="true" %}
{ "tenantId": "pb",
"moduleName": "common-masters",
"AppVersion": [
{
"latestAppVersion": "1.2.0",
"packageName": "com.dwss.mgramseva"
} ]
}{ "tenantId": "pb",
"moduleName": "common-masters",
"AppVersion": [
{
"latestAppVersion": "1.2.0",
"packageName": "com.dwss.mgramseva"
} ]
}
{% endcode %}
commonProvider.getAppVersionDetails();
The MDMS call is made every time a user opens the app.
Once the ViewBuild() displays a pop-up on the landing page widget, it validates if the package version matches the version in MDMS.
{% code lineNumbers="true" %}
await commonProvider.getAppVersionDetails();
CommonMethods()
.checkVersion(context, commonProvider.appVersion!.latestAppVersion);
{% endcode %}
CommonMethods()
.checkVersion(context, commonProvider.appVersion!.latestAppVersion);
punjab-mgramseva/main.dart at master · misdwss/punjab-mgramseva
punjab-mgramseva/common_methods.dart at master · misdwss/punjab-mgramseva