iPad Web Apps hidden at Apples website

Today’s iPhone web apps are more than just iPhone-optimized websites. They almost look and feel like native 3rd party apps: You can “install” them and they’ll appear right along your other “regular” iPhone apps. After launching, they hide the browser’s address bar and other controls. They can be even used in offline mode, thanks to HTML5’s local storage.

It seems like a perfect “illusion”. Well… it’s an almost perfect illusion. The main difference between a native iPhone app and an iPhone web app is performance. 

In december 2009, John Gruber posted an article on his Daring Fireball blog about Apple’s mysterious PastryKit Javascript Framework. It has never been officially released and you won’t find any information about it in Apple’s developer docs, but it’s already in heavy use.

Grab your iPhone and navigate to http://help.apple.com/iphone/3/mobile/ where you will find the official iPhone user manual as a web app that is build on top of PastryKit. The overall performance is impressive. On a 3GS device it’s hard to distinguish from a native iPhone app.

Here’s what Gruber wrote about it:

From WebKit’s perspective, everything in this iPhone User Guide is in a view that is exactly the size of the viewport, so there’s nothing to scroll. PastryKit handles all of what the user sees as scrollable content. This is how on the iPhone it provides for lower-friction scrolling than provided by MobileWebKit itself — PastryKit does its own scrolling math.

[…]

After installing the User Guide app to your home screen and launching it from there, there’s really very little to suggest that it isn’t a native iPhone application. No MobileSafari address bar at the top, no MobileSafari toolbar at the bottom. Scrolling is fast and has momentum. It even works perfectly offline, because the contents of the user guide are stored locally in a database using HTML5.

[…]

Here’s to hoping we haven’t heard the last of PastryKit, and that Apple continues work on making mobile WebKit an open alternative to the App Store.

You bet your ass, John.

When I played around with the iPad simulator in iPhone SDK 3.2 today, I logged into Apple’s developer portal. After trying to access the iPhone reference library docs, I was redirected to something that looks like this:

Tumblr_kzuwyczpze1qav15d
Tumblr_kzuwxurqok1qav15d

That’s right - the reference library as iPad web app.

It’s really amazing. This is as close to a native app as anything else I have seen yet, and way better than the iPhone user manual. And guess what it’s using under the hood:

Tumblr_kzuxy8edmj1qav15d

It seems like iPad.js exends PastryKit by adding iPad specific features and classes like the SplitViewController or the DocumentViewController.

The big question remains: Will Apple ever give PastryKit in the hands of iPhone and iPad web developer or will they continue to keep it as “open secret”?

Filed under  //   frameworks   html5   ipad  

OMG, it has no multitasking!

I have one advice for all those people that are complaining about the iPad’s lack of multitasking though I can’t really tell anything precise due to the confidential status of Apples new beta release of the iPhose OS 3.2, but, if you can: take a look at the developer resources, especially the “iPad Programming Guide”, page 28.

Not only that it introduces a whole new exciting feature to the iPhone OS, but it also has the word ‘Multitasking’ written all over it.

Seriously, do you really think the iPad with it’s “blazing” new 1GHz Apple A4 chip (probably made out of Steve Jobs’ blood and the tears of 100 unicorns) wasn’t technically capable of executing two or more Apps at once? C’mon!

Multitasking isn’t just a simple feature, if you consider it to be engineered really good, both on the iPad AND the iPhone. It’s not just about throwing some task manager in, it’s about having an “intelligent” and sophisiticating multitasking architecture combined with a great user experience.
Take for example the Android plattform. They have a bunch of task-killing apps (like this one), but do you really call this a great user experience, to launch an app in order to kill some other apps? I don’t think so.

It’s like the iPhone’s “Cut, Copy & Paste” feature, which was part of the latest major update of the iPhone OS. It was not just about having some fancy UI for copying text and pictures. I think it required a lot more work “under the hood” that simply couldn’t be shipped as part of a minor 2.x update.

So, my prediction is that multitasking will be part of the next major update of the iPhone OS that will be introduced at WWDC 2010 or maybe even earlier. Try to relax in the meantime ;)

Filed under  //   ipad   iphone   stevenote  

About

Addicted to shiny apples, beautiful pixels, awesome code and electronic music.

TwitterFacebookFlickr