public async Task CheckAppUpdate() { if (DeviceInfo.Connectivity.InternetReachability == NetworkReachability.NotReachable) { return; } IUpdateApp updateApp = DependencyService.Get <IUpdateApp>(); string currentVersion = updateApp.GetVersion(); string version = await HttpRequest.GetStr(EndPointHelper.GetCheckAppVersionUrl(Device.OS)); if (parseVersion(currentVersion) < parseVersion(version)) { bool yes = await DialogHelper.ShowConfirm(AppResources.APP_TITLE, AppResources.UPDATE_APP); if (yes) { Device.BeginInvokeOnMainThread(() => { updateApp.Update(); }); } } }