A Tech Log

October 8, 2008

Detecting IE Mobile

Filed under: Development — adallow @ 1:34 am

From the IE Mobile Team Weblog at:


“For Windows Mobile 5.0, the “current” release, the User-Agent header that the browser sends across is one of the following two strings:

  • Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; PPC; 240×320)
  • Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; Smartphone; 176×220)

Moving forward, here’s the new IE Mobile User-Agent string:

  • Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile m.n)

If you want to detect the current/older IE Mobile browsers, the way to do it is to look for “PPC” or “Smartphone“, as well as “Windows CE” in that string.  That’s the only sure-fire way to be certain of what you’re getting.

If you want to detect the new browsers coming out, just look for the string “IEMobile” as part of the User-Agent header.  Since the capabilities of the Pocket PC and Smartphone versions of the browser are identical, and they’re built from the identical code base, there’s no reason to differentiate them any more. “


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: