O'Reilly logo

Build Mobile Websites and Apps for Smart Devices by Earle Castledine, Max Wheeler, Myles Eftos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8Making Our Application Native

So, we’ve installed PhoneGap and all the development tools required to build native applications for our target platforms. Now it’s time to actually take our web app—which up until now has been happily sitting on a web server—and set it loose in the native environment. We’ve written the app as a single HTML page that uses Ajax to talk to a server; this has allowed us to make smooth transitions between the pages. But building the app this way is also going to help us out as we move over to PhoneGap.

The Anatomy of a PhoneGap Application

As we saw in the last chapter, PhoneGap creates a skeleton native app for your platform of choice. Inside that app’s folder structure is a www directory. PhoneGap will look ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required