Although it is arguably as much a business innovation as a technological one, there’s no doubt that the iPhone has radically altered the mobile device landscape, and, in the process, profoundly changed the way that Americans think about sitting on the toilet.
In fact, its uses extend beyond this crass but foremost example. You’ve also got your standing-in-line downtime, the crucial waiting-for-coffee-to-brew period, and of course miscellaneous hours spent idly fiddling while in meetings. If I’m not mistaken, the Bureau of Labor Statistics is on record as saying that high scores from Sudoku games played on mobile devices account for most of the productivity gains of the past decade.
Personally, I like to use the device to catch up on my online reading. But this crucial electronic-fucking-around is slowed by the need to enter URLs. If you’re like me, typically you’ll have some long-form article open in a neglected browser tab: say, 2000 words from Sasha Frere-Jones on why your implicit acceptance of the latest top 40 hit means you’re more — and less! — racist than you thought. It’s something I mean to read, but which the demands of the workday have made me put off. As I leave my desk to pursue less productive activities (food acquisition; interaction with humans), I frequently find myself wishing I had that article loaded on my handset. But the only way to move it there without tedious typing is to email myself the link, then check my email, then click on the link. If only there was an almost perfectly equivalent but slightly faster way!
Well, you’re/I’m in luck! I twittered this ridiculous first-world complaint the other day, and @tbridge and @jroo helpfully pointed me toward Prowl, a $2.99 iPhone app that takes the 3.0 firmware’s push notification capabilities and wraps them in a simple API.
This opens the door to creating a bookmarklet that grabs your browser’s current URL and pushes it to your phone. The phone will buzz, you’ll click the “view” button, and you can then follow the link. Easy! Here’s the bookmarklet. Just follow these steps (which, I should note, have only been tested in Firefox 3.5):
- Buy Prowl. Open it on your iPhone — you’ll need to register with its parent site and give the app permission to display notifications.
- Using your newly-created credentials, log into the Prowl site. Go to the settings tab and create an API key by clicking the appropriate button.
- Paste the API key into the form field below. Click the “Create Bookmarklet” button. NOTE: the customization of the bookmarklet is done in client-side Javascript, entirely within your browser — don’t worry, you won’t be sending me your API key.
- Drag the newly-created button into your browser’s quicklaunch bar.
Simple! Now when you click that bookmarklet a new window will be briefly opened. It’ll submit a request to the Prowl site that contains the current URL that you’re looking at. Shortly thereafter you should get a message on your phone with the link.
As for the new window: I admit, it’s inelegant to spawn a popup. But the Prowl API only accepts POSTed requests, which, barring a sudden and deeply unwise decision on their part to host third-party scripts, rules out a more seamless AJAX solution. The popup works well enough, although on especially slow connections the window may wind up closed before the request goes through. A better solution would involve a timer that checks the spawned window for when its location.href property suddenly becomes inaccessible due to cross-domain security policies (indicating that the page it contains is now being served by the Prowl domain). But my first crack at that didn’t work, so for now you guys are stuck with this.