Last post Oct 26, 2009 06:58 AM by SKT_01
Aug 21, 2008 02:59 PM|ASQ|LINK
I am using Request.UserAgent to get a string that identifies "user_agent" for that specific Mobile Station. I then use this string to match to the "user_agent" in the WURFL device XML list. My problem is that with some phones, such as the SonyEricsson P1i,
this string is quite long and contains quite a lot of information about the operating system version, browser version, etc. etc. For example:
"SonyEricssonP1i/R100 Mozilla/4.0 (compatible; MSIE 6.0; Symbian OS; 598) Opera 8.65 [en]".
The result is, that any of the P1i's that have a slightly different version of Opera installed on it, such as "Opera 8.70" instead of "Opera 8.65" for example, then it is not possible to match the two strings, and my application revert to my default "fall_back"
Does any one have another way (that is more effective) to match the Mobile Station to the relevant records in the WURFL XML list?
Oct 26, 2009 03:59 AM|matrixvibe|LINK
If you want to use WURFL database than make use of
http://www.51degrees.mobi/Products/NetMobileAPI it is a free open source ASP.NET mobile API. It makes use of WURFL database for mobile device detection. With this API there is no need of parsing the user_agent and comparing it with WURFL records. Everything
is done by this API making the task of mobile development very easy. It also allows you to redirect mobile devices to a alternative landing pages.
I have found this very useful and easy in implementing WURFL for my developments
Oct 26, 2009 06:58 AM|SKT_01|LINK
for the .NET Framework it's a better approach to use Browser Definition Files. Take a look at the
Mobile Device Browser File on CodePlex.