public async Task UpdateCheck() { if (versionServer == null) { await GetVersionServer(); } if (versionServer > versionClient) { AutoUpdateView autoUpdatePage = new AutoUpdateView(); await Application.Current.MainPage.Navigation.PushModalAsync(autoUpdatePage); } }
public async Task UpdateCheck() { //if (!Connectivity.Profiles.Contains(ConnectionProfile.WiFi)) //{ // await Application.Current.MainPage.DisplayAlert("Alert", "Wifi 연결 오류\n다시 처리해 주세요.", "OK"); // // Active Wi-Fi connection. // return; //} if (versionServer == null) { await GetVersionServer(); } if (versionServer > versionClient) { AutoUpdateView autoUpdateView = new AutoUpdateView(); await Application.Current.MainPage.Navigation.PushModalAsync(autoUpdateView); } }