11

I want to test a website to see how it works with the iPhone but I don't own an iPhone or an iPod touch. Is there a way I can test how the site works on them without owning one?

What I'm really after is fixing how Stackoverflow's WMD markdown editor works on the iPhone. I hear that the hyperlink and image prompts are created too high. I think I know how to fix that but it's pretty tough to develop blind.

Jeff Atwood
  • 60,897
  • 45
  • 146
  • 152
Dana Robinson
  • 4,105
  • 8
  • 29
  • 40

5 Answers5

12

If you own a Mac, you can download the iPhone SDK which comes with an iPhone simulator. It works not only for debugging a native app but also for browsing the web.

mouviciel
  • 62,742
  • 10
  • 106
  • 135
  • 1
    The simulator works very well. The only big difference I noticed is that the real iPhone or iPod is way, way slower. – Chris Lundie Feb 04 '09 at 07:42
9

If you have Safari on your computer, you can enable the "Develop" menu under Preferences > Advanced > Show Develop Menu in Menu Bar.

With this enabled, you can go to Develop > User Agent, and change the user-agent string to the device you want your browser to report to the web server as. By resizing the window to the appropriate width, you can emulate what the site will look like on the iPhone.

The upside of this is that it's quick, it works on both Windows and Mac, and you don't need the iPhone SDK installed. You can also browse iPhone-specific versions of websites that catch user-agent strings directly from your PC.

The downside is obviously your Safari browser on your PC will behave quicker than on the actual device (especially in regard to javascript performance); it displays plugins and shows fonts that may not be available on the actual iPhone OS; a lack of multi-touch support and "snapping" to columns while scrolling; no auto-rotation; no multi-touch/pinch-zoom; widgets will look different; etc.

Ryan
  • 5,190
  • 1
  • 37
  • 36
  • 2
    That's an excellent trick. Unfortunately, it doesn't reproduce the output my friend sees on his iPhone. I'm starting to think I'm going to have to wait for someone I know to get an iPhone. – Dana Robinson Feb 04 '09 at 07:10
3

Just a notice on this old thread - we have now enabled live testing on iPhones and iPads via vnc at CrossBrowserTesting.com. Ken - Founder

user245044
  • 31
  • 1
  • That would be interesting but I signed up for a demo wanting to test on a recent ios device and the system can't even run pages that run easily on xcode with ios 7.1 – Dan May 25 '17 at 07:25
2

There is a free app on the mac that emulates the iPhone browser: iPhoney

Stephan Burlot
  • 5,057
  • 3
  • 23
  • 26
1

I don't purport to have done more than a web search, but the problem seems to be solved by several products that are "iPhone web app emulators."

http://www.testiphone.com/

http://marketcircle.com/iphoney/

Chris Blackwell
  • 9,059
  • 1
  • 22
  • 26
  • 1
    I don't think the testiphone works very well. I had my friend check out SO and he could use the editor. There are no editor buttons in testiphone. – Dana Robinson Feb 04 '09 at 06:40
  • iPhoney looks promising so I'll give that a try. The problem is that the editor on SO uses a lot of Javascript and CSS which I need to be as accurate as possible. – Dana Robinson Feb 04 '09 at 06:43