移动设备浏览器的文件与WURFL用于ASP.NET [英] Mobile Device Browser File vs. WURFL for ASP.NET

查看:179
本文介绍了移动设备浏览器的文件与WURFL用于ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作有用于更有能力的设备(黑莓,iPhone和Android等)的独立手机浏览器版本的商业Web应用程序。我不想做简单的用户代理包含风格逻辑和一直在寻找在不同的检测库。好像WURFL和移动设备浏览器的文件是我最好的选择。

I am working on a commercial web application that has a separate mobile browser version intended for the more capable devices (BlackBerry, iPhone, Android, etc). I don't want to do simple User Agent contains style logic and was looking at the various detection libraries. It seems like WURFL and Mobile Device Browser File are my best options.

借助移动设备浏览器文件(MDBF)项目C $ CPLEX暴露通过<一个信息href=\"http://msdn.microsoft.com/en-us/library/system.web.htt$p$pquest.browser.aspx\">Request.Browser属性。此外,它有一个基于Microsoft Public License(MS-PL)。 <一href=\"http://blogs.msdn.com/jongallant/archive/2009/04/03/mobile-browser-detection-in-asp-net.aspx\">Mobile浏览器检测在ASP.NET 提到了为MDBF数据来自WURFL和<一个href=\"http://www.hanselman.com/blog/MixMobileWebSitesWithASPNETMVCAndTheMobileBrowserDefinitionFile.aspx\">Mix:移动网站与ASP.NET MVC和证实MBDF是移动浏览器定义文件从许多来源,其中包括著名的WURFL的移动设备功能数据库的数据库创建的。

The Mobile Device Browser File (MDBF) project at CodePlex exposes information through the Request.Browser property. Also, it has a Microsoft Public License (Ms-PL). Mobile Browser Detection in ASP.NET mentions "data for MDBF comes from WURFL" and Mix: Mobile Web Sites with ASP.NET MVC and the Mobile Browser Definition File confirms MBDF is "created from a database from many sources, including the popular WURFL mobile device capabilities database."

51degrees有一个使用的 .NET API手机: //wurfl.sourceforge.net/\">WURFL 的数据文件,并填充<一个href=\"http://msdn.microsoft.com/en-us/library/system.web.htt$p$pquest.browser.aspx\">Request.Browser.它是在Mozilla公共许可证1.1版授权。和索赔:

51degrees has a .NET Mobile API that uses the WURFL data files and also populates Request.Browser. It is licensed under the Mozilla Public License Version 1.1. and claims:

通过安装了.NET移动API和
  WURFL提供移动设备的数据,
  这些调用将返回极
  时相比,准确的数据
  提供标准的浏览器信息
  微软

With the .NET Mobile API installed and WURFL providing mobile device data, these calls will return extremely accurate data when compared to the standard browser information provided by Microsoft

由于官方的<一个href=\"http://sourceforge.net/projects/wurfl/files/WURFL%20.NET%20API/1.0/WURFL.NET-1.0.zip/download\">WURLF .NET API 带有一个GPL授权,所以它是一个非首发为我的项目。

Since the official WURLF .NET API is distributed with a GPL License, so it is a non-starter for my project.

WURFL ASP.NET实现比较WURFL的ASP.NET实现,但是这是一岁多(2009-01-16 - 文章提交)。而没有提及51degrees API或MDBF

WURFL ASP.NET Implementations compares ASP.NET implementations of WURFL, but this is over a year old (2009-01-16 - Article submitted) and doesn't mention the 51degrees API or MDBF.

我可以得到要使用的库的任何反馈。

Can I get any feedback on which library to use.


  • 多久这些数据文件更新?

  • 是它更好地使用特征检测的用户代理解析?

  • 是一种在线服务(例如手机检测)更容易更新数据文件吗?

  • 任何其他有用的投入。

  • How often are these data files updated?
  • Is it better to use feature detection that user agent parsing?
  • Is an online service (e.g. Handset Detection) easier that update data files?
  • Any other useful input.

推荐答案

关于移动设备浏览器文件

报价:由于发达国家和支持的移动设备浏览器文件球队的组织结构调整,我们将不再有足够的资源来支持和更新此codePLEX项目团队将提供两个版本 - 一个在2010年7月27日和2010年8月24日最终发布

Quote: "Due to the organizational restructuring of the team that developed and supported the Mobile Device Browser file, we will no longer have the resources to support and update this CodePlex project. The team will be providing two more releases – one on the 27th July 2010 and the final release on the 24th August 2010."

所以,我不是坏消息只是承载...

So that I am not just the bearer of bad news...

我们计划使用:

  • Mobile Device Detection and Redirection

51度

其中有一个很好的例子:

Which has a really good example of:

希望这有助于。

这篇关于移动设备浏览器的文件与WURFL用于ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆