如何在 AppDelegte .net Maui 中注册应用程序链接

问题描述 投票:0回答:1

我想在我的毛伊岛应用程序中添加应用程序链接。我遵循 Xamarin 指南: https://www.xamboy.com/2019/01/08/applinks-in-xamarin-forms/

现在我在 MainActivity.cs 中注册了 android 的应用程序链接

[IntentFilter(new[] { Android.Content.Intent.ActionView },
              DataScheme = "https",
              DataHost = "xxx.com",
              DataPathPrefix = "/Share",
              AutoVerify =true,
              Categories = new[] { Android.Content.Intent.CategoryDefault, Android.Content.Intent.CategoryBrowsable })]

在这个问题中,James Montemagno (https://techcommunity.microsoft.com/t5/app-development/net-maui-applinks/m-p/3090344)提到我必须在 Maui 中的 AppDelegate for iOS 中注册链接应用程序。问题:我不知道该怎么做。

谁能给我解释一下吗?

ios xamarin appdelegate maui applinks
1个回答
0
投票

鸣谢:立群神-MSFT

使用此链接创建 Entitlements.plist:https://learn.microsoft.com/en-us/dotnet/maui/ios/deployment/entitlements?view=net-maui-7.0

并使用本指南在其中注册您的域名:https://www.xamboy.com/2019/01/08/applinks-in-xamarin-forms/

© www.soinside.com 2019 - 2024. All rights reserved.