App Force Update

Update the app in case of new release/enhancements

Overview

Show Update App popup to end users in case there is a new release in the Google Play Store or IOS App Store.

MDMS Configuration

Add the file (link below) in the common-masters MDMS -

Update the version in the above-mentioned file whenever a new release is deployed to the Play Store or App Store.

{  "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"    
} ]  
}

Version Check Logic

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.

await commonProvider.getAppVersionDetails();
CommonMethods()
    .checkVersion(context, commonProvider.appVersion!.latestAppVersion);
CommonMethods()
    .checkVersion(context, commonProvider.appVersion!.latestAppVersion);

Primary Files

Last updated