Question

I am trying to determine what kind of interface to show to a user. If a user is visiting my site with a touch screen phone, I want to show them one interface, otherwise, I want to show them another.

Does anyone know of a list of UserAgent string values so I can do this check? I know I can check for the iPhone using the following code in ASP.NET:

Request.UserAgent.IndexOf("iPhone", StringComparison.OrdinalIgnoreCase)

However, I would really like to find a list for other similar phones like

Palm Pre Blackberry Thunder etc.

OTHER TIPS

I prefer WURFL, it is most up date database. And you can use .NET API Marg.Wurfl.

As far as i know at present,there are 147 different webphone browsers if you count versions as being different and 2438 makes/models (Samsung has about 180). Having just a list i think is useless as there are android phones that do not report that name in the userAgent string; which implies that maybe nothing else is useful with that string. Instead,use a set of simple PC-based browser tests and let the failure be "by gollie i am going to treat this user as a webphone". Safe to test any "standard" browser IE6 to IE9 (have not tested beyond that) or mozilla; at fall thru test for Safari, Chrome or Opera. Treat those last 3 as webphone, and fail of those tests, treat user as a webphone. Even IE5 acts fairly decently on moer "modern" web pages! So one set of pages for standard, and another for limited, junkie (Safari and Opera are in both classes), or extremely variable webphones. The lowest, junkiest webphone i have seen is the TracFone LG800G; rather limited memory and worse, limited page size. Do not ask what those limits are as nobody is talking,but they are small compared to anything else.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top