Xamarin.forms Xamarin forms:AppStore应用程序页面在新版本可用时未打开?

Xamarin.forms Xamarin forms:AppStore应用程序页面在新版本可用时未打开?,xamarin.forms,google-play,app-store,Xamarin.forms,Google Play,App Store,我正在使用NuGet软件包检查新版本的可用性 我的代码: using Plugin.LatestVersion; var isLatest = await CrossLatestVersion.Current.IsUsingLatestVersion(); if (!isLatest) { var update = await DisplayAlert("New Version", "There is a new version of this app available. Woul

我正在使用NuGet软件包检查新版本的可用性

我的代码:

using Plugin.LatestVersion;

var isLatest = await CrossLatestVersion.Current.IsUsingLatestVersion();

if (!isLatest)
{
    var update = await DisplayAlert("New Version", "There is a new version of this app available. Would you like to update now?", "Yes", "No");

    if (update)
    {
        await CrossLatestVersion.Current.OpenAppInStore();
    }
}
在android和IOS中,如果有新版本可用,则显示警报效果良好对于android应用程序,如果在警报中点击yes,它将在play store应用程序中加载应用程序页面。

但对于ios,在警报中点击“是”选项时,应用程序页面不会加载<代码>无法连接到应用商店显示在应用商店应用程序上。

屏幕截图:

using Plugin.LatestVersion;

var isLatest = await CrossLatestVersion.Current.IsUsingLatestVersion();

if (!isLatest)
{
    var update = await DisplayAlert("New Version", "There is a new version of this app available. Would you like to update now?", "Yes", "No");

    if (update)
    {
        await CrossLatestVersion.Current.OpenAppInStore();
    }
}


我还尝试了
等待crosslatest.Current.OpenAppInStore(“应用包名称”),但在AppStore上显示与上面相同的屏幕。

这是一个已知问题,此处报告:

因此,我现在使用
Launcher.OpenAsync
在AppStore中打开应用程序

public async void IsLatestVersion()
{
    var isLatest = await CrossLatestVersion.Current.IsUsingLatestVersion();

    if (!isLatest)
    {
        var update = await DisplayAlert("New Version", "There is a new version of this app available. Would you like to update now?", "Yes", "No");

        if (update)
        {
            if(Device.RuntimePlatform == TargetPlatform.iOS.ToString())
            {
                await Launcher.OpenAsync(new Uri("App store link"));
            }
            else
            {
                await CrossLatestVersion.Current.OpenAppInStore();
            }
        }
    }
}