public static async Task NotifyUserWhenNotMetAppRecommendedVer(this IAppConfigurationService configurationService, bool retrieveCached = false, Action failureHandler = null, string recommVerKey = Constants.AppConfigurationRecommVersionKey)
{
var metRecommendedVer = await CheckRecommendedVersion(configurationService, retrieveCached, recommVerKey);
if (!metRecommendedVer)
{
if (failureHandler != null)
{
//developer might have the custom action rather than displaying out alert
failureHandler.Invoke();
}
else
{
//Alert users
await configurationService.BlockAppFromRunning(Constants.AppConfigurationRecommendedVersionNotMetUserDialogTitle, Constants.AppConfigurationRecommendedVersionNotMetUserDialogBody);
}
}
}