【发布时间】:2020-02-01 03:12:12
【问题描述】:
我正在使用Plugin.LatestVersion 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 应用,如果在警报中点击“是”,它将在 Play 商店应用中加载应用页面。
但对于 ios,当点击是选项形成警报时,应用页面不会加载。 Cannot connect to AppStore 显示在 Appstore 应用中。
截图:
我也尝试过await CrossLatestVersion.Current.OpenAppInStore("app bundle name");,但在 AppStore 上显示相同的屏幕。
【问题讨论】:
标签: xamarin.forms google-play app-store