C# 应用程序链接不';在outlook电子邮件中无法触发
我遵循了应用程序链接教程。它工作得很好。我创建了一个基本站点,当我点击一个按钮时,它触发了应用程序链接 我想做的下一件事是在通过outlook/gmail查看时触发应用程序链接 当按钮被点击时,什么也没有发生,它直接进入链接。请问为什么会这样?应用程序链接在电子邮件中不起作用吗 我当前的代码 MainActivity.csC# 应用程序链接不';在outlook电子邮件中无法触发,c#,android,C#,Android,我遵循了应用程序链接教程。它工作得很好。我创建了一个基本站点,当我点击一个按钮时,它触发了应用程序链接 我想做的下一件事是在通过outlook/gmail查看时触发应用程序链接 当按钮被点击时,什么也没有发生,它直接进入链接。请问为什么会这样?应用程序链接在电子邮件中不起作用吗 我当前的代码 MainActivity.cs [IntentFilter(new[] { Intent.ActionView }, Categories = new[] { Intent.CategoryBrowsabl
[IntentFilter(new[] { Intent.ActionView },
Categories = new[] { Intent.CategoryBrowsable, Intent.CategoryDefault },
DataScheme = "https",
DataHost = "dev.mytestsite.com",
AutoVerify =true)]
网站/电子邮件锚标签
<a href="https://dev.mytestsite.com/"> CLICK ME </a>
当我检查html代码时,我注意到的一件事是锚定标记会添加其他属性
单击电子邮件中的链接时,可能会添加一个尾随的
/
。看看下面的方法是否有效:
[IntentFilter(new[] { Intent.ActionView },
Categories = new[] { Intent.CategoryBrowsable, Intent.CategoryDefault },
DataScheme = "https",
DataHost = "dev.mytestsite.com",
AutoVerify =true),
IntentFilter(new[] { Intent.ActionView },
Categories = new[] { Intent.CategoryBrowsable, Intent.CategoryDefault },
DataScheme = "https",
DataHost = "dev.mytestsite.com",
DataPathPrefix = "/",
AutoVerify =true)]
同样的结果不幸的是,你能尝试删除电子邮件链接中的尾随斜杠吗?