Repost of WWDC iPhone Safari info 4
The original article from the University of Washington I mentioned in my last post More iPhone web development info has been taken down, so in the interest of anyone else who wants to develop iPhone enhanced web apps I’m reposting it here. I’ve removed the original posters name as I figure he might already be in enough trouble as it is. I’ll add it back if he wants me to.
Just so you remember. The following below this was not written by me, but by someone who attended WWDC. I have no other knowledge about this than what is written below. I don’t think there is anything particularly dangerous for Apple either, just useful info most of which we already know.
Apple WWDC iPhone Development
(Authors name removed)
18 Jun, 2007
The intro slide for this session is called Designing Web Content for the iPhone. Notice it doesn’t say developing iPhone client applications for the iPhone. So the first thing the speaker says is that developing for the iPhone is easy as cake, just develop for safari. A web browser that no one uses and hasn’t been in the wringer like IE7 or Firefox in terms of security vulnerabilities. Steve Jobs touts that Safari is the fastest web browser in the world by running a precanned demo of one website.
So what does the iPhone offer for websites. Lets take a look at what Apple has to say:
- developing websites for the desktop and in most cases it will just work on the iphone
- browsing the web with iphone is easy thru Safari
- scroll using two fingers
- double tap for zoom in on content
- the page view feature lets you look at multiple websites and documents by scrolling thru them one after another
- full support for PDF
The speaker goes thru a bunch of popular websites to show that many websites are already good to go for the iPhone so ideally only limited tweaks are required. However I dont know if those sites have already been prepped to work well with iPhone prior to the WWDC.
Pageview is a feature in iPhone to help you view webpages and documents. Since the iPhone does not have windows it uses page view to allow users to see the content.
The speaker then talks about Safari and its capabilities.
- it supports all latest internet standards
- WHATWG
- 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
No flash and No Java of course this means no Microsoft Silverlight
Good design practices for iPhone:- separate html and css
- use well structured and valid html
- size images appropriately dont rely on browser scaling
- tile small images in backgrounds
- dont use large backgroung images
- avoid complicated framesets, better yet dont use framesets at all
- iPhone supports both EDGE and WiFi. EDGE pipe is smaller then WIFI pipe so think about bandwidth when developing.
- XHTML mobile documents supported
- stylesheet device width:480px
- apply different css for the iPhone. For example displaying a one column page for iphone vs a 3 column page on a desktop.
- there are no scroll bars or resize knobs. the iphone will automatically expand the content
- framesets
- avoid them if you can
- scrollable frames are automatically expanded to fit the content
- frames exploded to the full scale and then fit to the screen
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
Without any addition coding on your website the iPhone automatically offers these features to your website.
- double tap for zoom in
- one finger as a mouse used to
- pan page
- press and hold to display the information bubble
- two fingers as a mouse used to
- pinch content to shrink – zoom out
- pan page
- scroll wheel events
- 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
Encode content for iPhone: (Sorry guys I know almost nothing about video and audio stuff so I tried my best just to jot down stuff verbatim but it might not make sense to everyone)
H.264 baseline profile level 3.0 up to 640×480 fps bitrate
- with iphone content can arrive over net
- bitrate determines whether playback will stall
- iphone screen size 480×320
- encode move size 480×360
Exporter encoding
- Move to iphone
- Movie to iphone (Cellular)
- Movie to ipod
- Movie to MPEG-3
Reference movies types
- list of urls for your movie on your website and create a decision tree to pick them
- detect the bitrate and choose capabilities of the device
- iphone with media playback requires byte range support from http server
- supported by most http 1.1 servers
- also known as content-range or partial-range support
May need MIME types for .mp4, m4v, .3gp
Embedding Video into webpages
- embedding quicktime on webpages link to article on apple websites
Links to movies on a web page will take users directly to video full screen playback
- Use new quicktime exporters
- provide low-bitrate versions of content
- use reference movies to auto stream best verson
- setup your media server to support byte-range required
- use poster jpegs
- provide direct links to podcast episodes
Create, negotiate and accept legally binding contracts for free with our Agree2 service.
Trackbacks
Use the following link to trackback from your own site:
http://stakeventures.com/articles/trackback/236





Pelle,
Thanks for the heads up, great info. Besides the flash (isn’t THAT big of a deal), it looks sweet.
I notice that you list 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
Here is a page of resources for iPhone Web Dev http://swik.net/Rails-Ruby/TechKnow+Zenze/Top+15+iPhone+Web+Development+Resources/bditr
Thank you for the extensive list you put together here. I am starting to develop for the platform and really appreciate you taking the time to make this information available!