PhoneGap - Native iPhone Apps Running your HTML, CSS, JavaScript Code
Stumbled across phonegap - a project that allows you to publish a native iPhone app that simply acts as a pass-through to your web application of choice. The best part is, you can tap into some of the core frameworks of the iphone SDK via javascript, i.e. you can tap into the Core Location framework, Acceleration, etc, etc! Hats off to the developers of this project. It’ll make my life a whole lot easier.
Step 1: Develop a website on the stack of your choice. Better yet, use the iUI library to develop a website that looks and feels like a native iphone app.
Step 2: Download phonegap from github and open the project in Xcode. Simply edit the file called url.txt in the Resources folder to point to the URL of your iphone app. Compile and run and you should see your website appear.
Step 3: To access the SDK libs, simply use their function calls:
-
getLocation();
-
-
// automatically calls this callback
-
gotLocation(lat,lon) {
-
// do awesome stuff with google maps, etc, etc.
-
}
Check out more information on their google group.




Add New Comment
Viewing 2 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Add New Comment