diff --git a/Covid19Radar/Covid19Radar/Common/AppConstants.cs b/Covid19Radar/Covid19Radar/Common/AppConstants.cs index acd178a63..7ced88f8e 100644 --- a/Covid19Radar/Covid19Radar/Common/AppConstants.cs +++ b/Covid19Radar/Covid19Radar/Common/AppConstants.cs @@ -103,6 +103,7 @@ public static readonly DateTime SURVEY_END_DATE_UTC public const int EventLogFileExpiredSeconds = 14 * 24 * 60 * 60; // 14 days public const string EndOfServiceCheckDetailsUrl = "https://www.mhlw.go.jp/cocoa/yousei.html"; + public const string SurveyDetailsUrl = "https://www.digital.go.jp/"; #region Other Private Methods diff --git a/Covid19Radar/Covid19Radar/ViewModels/EndOfService/SurveyRequestPageViewModel.cs b/Covid19Radar/Covid19Radar/ViewModels/EndOfService/SurveyRequestPageViewModel.cs index 111f618f3..e34e47992 100644 --- a/Covid19Radar/Covid19Radar/ViewModels/EndOfService/SurveyRequestPageViewModel.cs +++ b/Covid19Radar/Covid19Radar/ViewModels/EndOfService/SurveyRequestPageViewModel.cs @@ -2,8 +2,11 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. using System; +using Covid19Radar.Common; using Covid19Radar.Resources; using Prism.Navigation; +using Xamarin.CommunityToolkit.ObjectModel; +using Xamarin.Essentials; using Xamarin.Forms; namespace Covid19Radar.ViewModels.EndOfService @@ -20,8 +23,9 @@ INavigationService navigationService { } - public Command CheckDetailsCommand => new Command(() => + public IAsyncCommand CheckDetailsCommand => new AsyncCommand(async () => { + await Browser.OpenAsync(AppConstants.SurveyDetailsUrl, BrowserLaunchMode.SystemPreferred); }); } }