Getting websites to detect our mobile browser
Posted
by Chromatix
on Stack Overflow
See other posts from Stack Overflow
or by Chromatix
Published on 2010-04-21T19:31:24Z
Indexed on
2010/04/21
19:33 UTC
Read the original article
Hit count: 342
mobileweb
I've been asked to find out a sensible way to make the majority of popular websites detect our browser - which is functionally complete, but is running on rather constrained hardware - as a "mobile" browser. The idea is that the heaviest popular websites seem to have mobile versions, which render much faster and fit better on the screen.
I've looked at the inverse question, which tells me that there isn't an obvious standard way of doing it - http://www.brainhandles.com/techno-thoughts/detecting-mobile-browsers is a case in point. This is borne out by looking at a variety of User-Agent strings from popular mobile and desktop browsers.
So far the best idea we can come up with is to add "Mobile" to the string somewhere, since this is the main visible difference between Safari for iPad/iPhone and for Windows/Mac. Does anyone have a better idea?
© Stack Overflow or respective owner