Chapter 8 Making 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 ...

Get Build Mobile Websites and Apps for Smart Devices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.