Check Your Websites on the iPad ASAP! (iPad User Agent)

April 5th, 2010 by Dustin

This is just a little notice to make sure your website works properly on the iPad. Specifically make sure it doesn’t end up re-directing to your mobile site. It seems the iPad user agent string contains the word ‘Mobile’ in it, not terribly helpful, thanks Apple. My site was re-directing to the mobile version. You have to look for ‘iPad’ in the user agent, but it will also contain ‘Mobile’ so put some logic in your code to make sure you handle it properly. Kind of annoying, but an easy fix.

The iPad user agent string is:

Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B367 Safari/531.21.10

Share

Leave a Reply