Skip to Content

AdLib: Apple's secret web app weapon

MobileCrunch noticed something interesting about the iPad User Guide hidden in the iPad Safari's bookmarks. It's a web app, but it doesn't feel like a web app -- the views scroll independently and smoothly, "clicking" is exact, and the whole thing runs much more like a native iPad app than anything web app developers have been able to put together yet. Why? Apple's got a secret -- Done21 is calling it "AdLib," after a file found somewhere in the source code, and apparently it's a library that connects UIKit to HTML, CSS, and Javascript. It's a go-between framework that has no documentation in the code at all, and uses practically unlabeled variables. In other words, Apple is putting their own magic into web apps, and while the code is there to see, they aren't interested in sharing.

At this point, it's not much more than a novelty -- Apple obviously is depending on Xcode and the iPhone OS SDK for developing iPad and iPhone applications, and there's no need for them to share the code magic that's making this happen. But it's interesting when you think of the original emphasis that Apple placed on web apps way back in the early iPhone days. If all of those web apps we had were as well-coded and responsive as this -- in other words, if they'd actually had ties into the UI -- then maybe web apps would have been just enough.

MobileCrunch noticed something interesting about the iPad User Guide hidden in the iPad Safari's bookmarks. It's a web app, but it doesn't...
 

Add a Comment

*0 / 3000 Character Maximum

21 Comments

Filter by:
macsharks

The full source code and a demo of the User Guide that works in any browser is available at http://www.gregsrumors.com

April 11 2010 at 4:28 PM Report abuse rate up rate down Reply
Gono

If like me you don't have your iPad yet because you live outsite the US, you can still play with it on safari for desktop so you can ready when you get your hands on it later this month. All you have to do is pointing your browser to http://help.apple.com/ipad/mobile/interface/, but be sure to set your user agent in safari to Mozilla/5.0 (iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7E18 Safari/528.16

Best,

April 10 2010 at 9:12 AM Report abuse rate up rate down Reply
drunknbass

Actually you're all wrong.

iAd is powered by objective-c framework called AdLib.framework

AdLib.framework is really no different than quattro or admob or any other ad network except its bundled into the os.

All the magic and cool stuff you saw during the keynote was html5 and nothing in iAd powers this.

This pastrykit stuff has been doable for a while, and there are solutions out there to do the same things.(mootouch, jQtouch, etc)

Most people are confused thinking apple has some magic tool to output these awesome ads like the toy story one when thats not the case, and they even hinted in the keynote they don't plan to supply this.

The major reason why "mobile ads suck" is because apple has never allowed inline audio and video into their webkit builds on iphoneOS. It is now available in ipad 3.2 and thats how you can watch youtube videos inline without launching some obtrusive fullscreen video player. Its also why you have never noticed annoying background sounds playing on websites.

Its kind of funny(maybe not for ad networks) that apple has included inline media in webkit and built an ad solution and unveiled it to the public at the same time. Kind of unfair to current ad networks saying "mobile ads suck" when they couldn't pull this stuff off with what apple limited webkit to do.

These rich media ads could be available right now on admob or any other ad networks as long as they designed the html page that loaded to be as awesome as that toystory one(which would probably cost you $30k to have built from an ad agency). And ad networks will move in that direction and most likely go even higher on the scale with pushing html5 and js to its limits.

Also to be clear, at this time AdLib.framework has nothing to do with Pastrykit and any of this stuff that has adlib bundled into its naming conventions.

It is very possible pastykit is bundled onto os and you can link to it in your html ads but even if its not, its only ***kb of extra data to push down with your ad.

April 09 2010 at 9:34 PM Report abuse rate up rate down Reply
1 reply to drunknbass's comment
Luke le

While you're entirely right that AdLib is a objective-c framework, that framework only allows you to display ads in your apps, but I'm pretty sure that the AdLib JS framework is the tool ad creators will be given to code their ads with and do all the fancy animations and stuff presented in the keynote.

My 2 cents

April 10 2010 at 5:09 AM Report abuse rate up rate down Reply
Adam

AdLib is the library Apple developed to enable native-app-like performance from for iAd. Remember the ads Steve demoed, how he said they were all done in HTML5, yet they were incredibly smooth and included widgets like native Google Maps? They've obviously just used it to make the user guide feel more like a native app.

April 09 2010 at 8:55 PM Report abuse rate up rate down Reply
applecomputersinc

Anyone dumped this into a zip yet? Care to share the template with us?

April 09 2010 at 8:39 PM Report abuse rate up rate down Reply
6 replies to applecomputersinc's comment
jakethepianist

Setting it as a home screen icon, at least for the iPod touch, turns it into a complete web app. There's no address bar, and it has its own icon art.

April 09 2010 at 8:20 PM Report abuse rate up rate down Reply
1 reply to jakethepianist's comment
drunknbass

this has been doable for a while.. maybe since 2.*

ever seen glyphboard? http://mrgan.com/gb/

April 09 2010 at 9:22 PM Report abuse rate up rate down Reply
John.B

Actually, AdLib seems to be some sort of an enhanced version of PastryKit.

And, no Aaron, AdLib and iAd are two different things.

April 09 2010 at 8:05 PM Report abuse rate up rate down Reply
Aaron

Ummm, AdLib is Apple's library for iAds.

That's all it is. Since it's all HTML5-y, this same library could also be used for other web app stuff.

April 09 2010 at 7:52 PM Report abuse rate up rate down Reply
Gene

Good lord, TUAW - where have you been all these years? This is ANCIENT news. Apple's been using this custom framework for years with the iPhone user guide and other web apps. It's known as "Pastrykit." Do a Google search, mmkay?

April 09 2010 at 7:46 PM Report abuse rate up rate down Reply
1 reply to Gene's comment
Sparks

Fairly sure it's also used for the iPad-optimized version of the iPhone OS SDK reference.

Hit http://developer.apple.com/iphone/library/iPad/index.html on the iPad for a native version of the iPhone OS programmers reference, served up as an iPad app. Even handles the usual iPad UI modes: portrait gives you a full-screen view of what you're doing with a Library pulldown to navigate, landscape gives you a splitview with the content on one side and Library navigation on the other.

April 09 2010 at 8:14 PM Report abuse rate up rate down Reply
exit2shell

You mean this is just like what Palm provides in webOS - the ability to access native APIs through HTML5, CSS & Javascript.

Nothing new here...

April 09 2010 at 7:39 PM Report abuse rate up rate down Reply
2 replies to exit2shell's comment
Izzy

Nothing new except the speed by which it gets done (webos slowness).

April 09 2010 at 8:20 PM Report abuse rate up rate down Reply
ben

What are you talking about?
The "adLib" doesn't access native API at all, it is pure Javascript.

April 09 2010 at 8:53 PM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.