Skip navigation

Cannot detect iPhone 4 for mobile site development?

1332 Views 2 Replies Latest reply: Jul 13, 2010 9:19 AM by DaVBMan RSS
JAGUK Level 1 Level 1 (10 points)
Currently Being Moderated
Jul 13, 2010 9:15 AM
Hi all,

1st post on the forums... not even sure if this is the right place to post this?

I work for a digital marketing agency which builds bespoke internet and mobile sites and we cannot detect the iPhone 4 via the usual method of using its user agent. We deliver device specific mobile downloads on a lot of our sites and because the iPhone 4 has its lovely hi res 640x960 resolution, naturally we want to be able to deliver video / image content to maximise the iPhone 4 user's experience.

The problem is that the user agent for the iPhone 4 is identical to all other iPhones, it is only specifying the OS version not the hardware.

We know that we can do something to detect the viewport size using javascript but to be honest that's a bit hacky.

Surely the iPhone 4 should identify itself as such via the traditional method contained in the user agent?

iPhone, iOS 4, iPhone 4


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.