O'Reilly logo

Beginning PhoneGap: Mobile Web Framework for JavaScript and HTML5 by Yogesh Patel, Rohit Ghatol

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 9

Extending PhoneGap

Thus far, we have seen that PhoneGap has two parts

  1. The JavaScript part that we call from our PhoneGap applications
  2. A native part we include in our PhoneGap project to expose native phone features.

These two parts work for scenarios where we want to access common phone features, including the following:

  1. Camera
  2. Accelerometer
  3. File system
  4. Geo location
  5. Storage services

However, we often need to go beyond these features.

JavaScript Limitations

We have seen that JavaScript has improved in performance in the last decade; it has become 100 times faster than it was five years ago. However, even when this is true, sometimes applications need to do heavy lighting, do things in the background, or do complex operations. These ...

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