我想在我的 MVC 控制器中检测 android 的默认浏览器。我现在有移动检测:
public ActionResult Index()
{
if (WurflHelper.Instance.IsMobile(Request.UserAgent))
{
return View("MobileView");
}
else
{
return View();
}
}
我如何检测 android 默认浏览器(不是 chrome)。我需要此检测的 UserAgent 参数匹配。谢谢你的建议。
- - - - - - - 编辑 - - - - - - - - - - - - - - - - - - --------------------------
我为客户端(javascript)找到了这个解决方案:如何检测库存的 Android 浏览器。我需要相同的 asp.net MVC 解决方案