Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/296.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/234.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 应用程序链接不';在outlook电子邮件中无法触发_C#_Android - Fatal编程技术网

C# 应用程序链接不';在outlook电子邮件中无法触发

C# 应用程序链接不';在outlook电子邮件中无法触发,c#,android,C#,Android,我遵循了应用程序链接教程。它工作得很好。我创建了一个基本站点,当我点击一个按钮时,它触发了应用程序链接 我想做的下一件事是在通过outlook/gmail查看时触发应用程序链接 当按钮被点击时,什么也没有发生,它直接进入链接。请问为什么会这样?应用程序链接在电子邮件中不起作用吗 我当前的代码 MainActivity.cs [IntentFilter(new[] { Intent.ActionView }, Categories = new[] { Intent.CategoryBrowsabl

我遵循了应用程序链接教程。它工作得很好。我创建了一个基本站点,当我点击一个按钮时,它触发了应用程序链接

我想做的下一件事是在通过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代码时,我注意到的一件事是锚定标记会添加其他属性


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

[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)]

同样的结果不幸的是,你能尝试删除电子邮件链接中的尾随斜杠吗?