Until Apple release the SDK for the iPhone, we are relegated to creating iPhone aware web-apps. I was inspired by the Facebook and Google optimised pages for the iPhone to investigate the details of the Safari browser.
Here are some resources to help you create Safari-savvy pages:
Relevant UserAgent strings:
- Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/523.12.9 (KHTML, like Gecko) Version/3.0 Safari/523.12.9
- Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/3B48b Safari/419.3
- Mozilla/5.0 (iPod; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/3A100a Safari/419.3