gpt4 book ai didi

xamarin - AppLink Xamarin 表单未建立索引

转载 作者:行者123 更新时间:2023-12-02 17:22:41 26 4
gpt4 key购买 nike

我想知道你是否能帮忙,这简直让我发疯。我正在尝试将深度链接集成到我的应用程序中,如下 Lightning lecture但它根本行不通。我什至无法让我的项目在聚光灯搜索中显示。

所以我创建了一个全新的项目,全部默认新解决方案->表单应用程序。

默认应用程序是一个待办事项列表应用程序,我只添加了两个方法

AppLinkEntry GetAppLink(ItemDetailViewModel item)
{
var pageType = GetType().ToString();
var pageLink = new AppLinkEntry
{
Title = item.Title,
Description = item.Title,
AppLinkUri = new Uri(string.Format("http://website1120180225101729.azurewebsites.net/?id={0}",item.Title.Replace(" ","") ), UriKind.RelativeOrAbsolute),
IsLinkActive = true,
Thumbnail = ImageSource.FromFile("xamarin_logo.png")
};

return pageLink;
}
protected override void OnAppearing()
{
appLink = GetAppLink(BindingContext as ItemDetailViewModel);
if (appLink != null)
{
appLink.IsLinkActive = true;
Application.Current.AppLinks.RegisterLink(appLink);
}
}

请参阅下面的打印屏幕。它注册一个应用程序链接

Breakpoint

但是当我最小化应用程序并开始聚焦搜索时,它不会出现在那里 enter image description here

最佳答案

您还应该在 Entitlements.plist 中添加关联域。打开您的 Entitlements.plist 配置如下:

enter image description here

设置完成后,我们应该将此自定义权利添加到我们的项目中:

右键单击 iOS 项目 => 属性 => iOS 捆绑签名 => 自定义权利。

选择我们上面设置的Entitlements.plist

关于xamarin - AppLink Xamarin 表单未建立索引,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48983631/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com