Saving iPhone applications inside data URLs
This is really basically the same theory as the iPhone bookmarklets Mat posted earlier (squeezing content into a URL), but it's a little less about function and a little more about storage. Currently, the iPhone doesn't allow you to save actual files locally, but it does allow you save URLs, so the idea here is to save entire applications (or other HTML content) in the form of a data URL.It's a pretty wonky hack, but it works-- you can convert whole HTML pages, or even applications, depending on the URL length the iPhone's bookmarks allow, into data URLs (with the Perl script on that page if you don't want to do it manually), and then those data URLs can be loaded into MobileSafari on the iPhone, even in Airplane mode. The suggestion is made that this could allow persistent storage for web applications on the iPhone, but wouldn't that require allowing the HTML page to write to and read from the iPhone's bookmarks? Is that possible?
At any rate, maybe it's a good thing, for a little while at least, that Apple didn't release a "real" SDK for the iPhone. Web programmers are making their code do all kinds of flips and tricks to get every bit of access they can on the iPhone. People have been talking about browser-based, OS independent applications for years-- maybe Apple's insistence that iPhone developers go through the browser will bring about that world sooner than we thought.
[via DF]
Share
Categories
This is really basically the same theory as the iPhone bookmarklets Mat posted earlier (squeezing content into a URL), but it's a little...
Add a Comment
I came across a great application for converting files into data URLs called Filemark Maker. Its at http://www.insanelygreattees.com/news/?p=51
July 22 2007 at 1:56 PM Report abuse Permalink rate up rate down ReplyI've managed to encode Apple's Puzzle game in a data url. You can install it on your iphone by going here and following the instructions:
http://s3.amazonaws.com/stakeventures.com/puzzler.html
is this the same idea as this:
http://tinyurl.com/29d39m ?
because while this is for PDFs, and not apps, it works brilliantly.
Tt,
the problem with emailing is you can't use landscape mode in Mail.
Of course...all this would be unnecessary if Apple would just give us PDF support in iTunes or iPhoto..or even better..a new iReader :D
make that John Gage
http://en.wikipedia.org/wiki/John_Gage
"the network is the computer" - sun microsystems
July 19 2007 at 7:08 PM Report abuse Permalink rate up rate down ReplySo having to launch safari then go to my bookmarks to run an app is a good thing?
July 19 2007 at 6:54 PM Report abuse Permalink rate up rate down ReplyThe problem with this of course is that Safari is prone to unexpected crashes.
I've been using a different method which is to email myself complete archives of a page and viewing them in the mail app. This works quite well and nothing is lost when the webkit decides to burp.
Hot Apps on TUAW
Deals of the Day
more deals- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- miFrame Picture Frame Dock for iPad for $64 + $8 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
- Hannspree Apple-Shaped 28" 1080p LCD HDTV for $270 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



8 Comments