protected override async void OnStart()
        {
            VersionTracking.Track();

            if (VersionTracking.IsFirstLaunchEver)
            {
                var response = await DialogService.ShowActionSheetAsync("Thanks for installing the app, would you like a tour?", null, null, "Yes", "No");

                if (response == "Yes")
                {
                    Device.OpenUri(new Uri("https://www.youtube.com/watch?v=JaVjmi7MDEs"));
                }
            }
            else if (VersionTracking.IsFirstLaunchForVersion("1.1"))
            {
                await DialogService.ShowAlertAsync(
                    "We've just released a panoramic photo viewer. Check it out on the property details page!",
                    "New Features");
            }

            var updateTask = Task.Run(async() =>
            {
                var updateService = ViewModelLocator.Resolve <IUpdateService>();

                if (await updateService.CheckForAppUpdatesAsync())
                {
                    MainThread.BeginInvokeOnMainThread(async() =>
                    {
                        var mainPage = Current.MainPage;
                        await mainPage.DisplayAlert("App Update", "There is a new version available. Please download it from the App Store", "OK");
                    });
                }
            });
        }
 /// <summary>
 /// 确定这是否是指定版本号的应用程序的首次启动。
 /// </summary>
 /// <param name="version"></param>
 /// <returns></returns>
 /// <exception cref="NotImplementedException"></exception>
 public static bool IsFirstLaunchForVersion(string version)
 {
     if (Essentials.IsSupported)
     {
         return(VersionTracking.IsFirstLaunchForVersion(version));
     }
     else
     {
         return(CurrentVersion == version && IsFirstLaunchForCurrentVersion);
     }
 }
 /// <inheritdoc />
 public bool IsFirstLaunchForVersion(string version) => VersionTracking.IsFirstLaunchForVersion(version);