Chapter 9
Extending PhoneGap
Thus far, we have seen that PhoneGap has two parts
- The JavaScript part that we call from our PhoneGap applications
- 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:
- Camera
- Accelerometer
- File system
- Geo location
- 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 ...
Get Beginning PhoneGap: Mobile Web Framework for JavaScript and HTML5 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.