[英]App linking doesn't trigger in outlook email
I've followed this tutorial for app linking.我已按照本教程进行应用链接。 It works great.它工作得很好。 I created a basic site and when I clicked a button, it triggered the app linking.我创建了一个基本站点,当我单击一个按钮时,它触发了应用程序链接。
The next thing I wanted to do was trigger app linking when viewing through outlook/gmail.我想做的下一件事是在通过 Outlook/gmail 查看时触发应用链接。
When the button is clicked, nothing occurs, it goes straight to the link.单击按钮时,什么也没有发生,它直接进入链接。 May I ask why does that occur?请问为什么会出现这种情况? Does App-linking not work in emails?应用程序链接在电子邮件中不起作用吗?
My current Code我当前的代码
MainActivity.cs MainActivity.cs
[IntentFilter(new[] { Intent.ActionView },
Categories = new[] { Intent.CategoryBrowsable, Intent.CategoryDefault },
DataScheme = "https",
DataHost = "dev.mytestsite.com",
AutoVerify =true)]
Website/email anchor tag网站/电子邮件锚标记
<a href="https://dev.mytestsite.com/"> CLICK ME </a>
One thing I noticed when I examine the html code is that the anchor tag gets other attributes added to it.当我检查 html 代码时,我注意到的一件事是锚标记添加了其他属性。
There may be a trailing /
being added when clicking a link in an email.单击 email 中的链接时,可能会添加尾随/
。 See if the following works:看看以下是否有效:
[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)]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.