iPhone Web Development 6
I haven’t found much info on developing for the iPhone, but this link provides some good info. Here are some extracts:
- Safari User Agent for iphone:: Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A538a Safari/419.3
- No Java, No Flash
- HTML5
- 10MB max html size for web page
- Javascript limited to 5 seconds run time
- Javascript allocations limited to 10MB
- 8 documents maximum loaded on the iPhone due to page view limitations
- Quicktime used for audio and video
- stylesheet device width:480px
- there are no scroll bars or resize knobs. the iphone will automatically expand the content
- new telephone links allows you to integrate phone calls directly from your webpage. remember this is only on safari.
- built in google maps client for integrated mapping from your website
- iPhone screen size 480×320
- encode movie size 480×360
- Links to movies on a web page will take users directly to video full screen playback
I didn’t have to say in line to buy an iPhone, the Apple Store in Aspen Groove served everyone that was waiting in line in about 30 minutes, I just happened to go eat next to the Apple Store with my wife and kids ;-). So I just picked one up on the way to the Restaurant, zero wait. The store is open to midnight but there is not too much activity. I guess only geeks like me (or Sol) will try to pick one the first day, even while being fully aware of the limitations or the price. And this despite that I told everyone that in no way I will get one. Note, we have to test our different web applications on the new platform. ATT seems a little overwhelmed and iTunes provides me with a nice message that it will take a little longer and I will be notified by email when I can activate the phone. Note that I just received a follow-up email that telling me to that the phone will be activated by July 1st noon.
Good post. The iPhone was a long time in coming – it was predicted back in 1979...
It’s nice to see changes happening in this area throughout the years. To my readers…go see Paul’s blog and his video on the history of the cell phone: http://www.youtube.com/watch?v=DgijePMhuO8
I always loved to program devices. We did a lot of that with my buddy Jacques way (way) back. For me the ultimate reference of where technology will go is Star Trek :-)
No Java and No Flash. I just don’t know. I was hoping for FLV video, some nice looking apps. And maybe some market support for java games.
I notice the first thing listed above is the user agent information of the iPhone.
If you’re programming Web 2.0 applications, Apple prefers that you not use the user agent information to base your assumptions about a client’s capabilities. Instead they want you to use ‘object detection’, as described in their developer’s web site…
http://developer.apple.com/internet/webcontent/objectdetection.html
Haha. I actually googled the iphone’s resolution and then went searching for the user agent and you were the first result on google!
Man, you could’ve saved me 2 days by telling me this information when I last saw you!
Very useful post.
iPhone Web Developer Tool
http://www.manifestinteractive.com/iphone/
This application allows you to use your iPhone for Web Developing. You can View Source, Find on Page, Outline Divs & Tables, etc. Similar to the Firefox Web Developer Extension. Simply drag bookmarks into the web browser that you have your iPhone or iPod Touch synced to and you’re good to go. Works on any site.
Let me know what you think. If you have stuff you want added just let me know.
- Peter Schmalfeldt