应用链接不会在Outlook电子邮件中触发

时间:2019-09-26 22:14:57

标签: c# android

我已经按照this教程进行了应用链接。效果很好。我创建了一个基本站点,当我单击按钮时,它触发了应用程序链接。

我接下来要做的是通过Outlook / gmail查看时触发应用程序链接。

单击该按钮时,什么也没有发生,它直接进入链接。请问为什么会这样?应用程序链接在电子邮件中不起作用吗?

我当前的代码

MainActivity.cs

[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代码时,我注意到的一件事是锚标记已添加了其他属性。

enter image description here

1 个答案:

答案 0 :(得分:0)

单击电子邮件中的链接时,可能会添加尾随/。看看下面的方法是否有效:

[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)]
相关问题