File Under: Mobile

Make Your Site An iPhone App

Webmonkey in an iPhoneYou can get most of the benefits of an iPhone application without writing a single line of Objective C. An open source project called PhoneGap lets your wrap your website in iPhone App goodness. And you can even charge for your creation.

Even more exciting than being able to easily create an app is getting access to some native iPhone APIs. Currently PhoneGap supports JavaScript access to the user’s location and the device accelerometer. Camera and vibration are still in the works.

There’s talk of being able to use a web form to create your app by submitting only the URL of your website. Currently, it’s a little more work, but easier than creating an app from scratch. You’ll still need to download the SDK and write your app in Apple’s XCode. The PhoneGap wiki has a hello world tutorial that should get you started.

One really cool aspect of the PhoneGap project is that it also supports Android and Blackberry. A write-once approach to mobile development is within grasp of the ordinary web developer.

[via John Resig]

See also: