extending the app - GarthDB/phonegap-day-workshop-beginner GitHub Wiki

Extending the App

Extending functionality, build-chain, and debugging the errors.

Table of Contents

  1. Plugins
  2. Project Hooks
  3. Debugging an App

Every good project eventually grows up. As you develop your mobile app, you'll quickly realize that you want additional native functionality, optimizations in your build-chain, and a way to figure out where something went wrong.

1. Plugins

PhoneGap plugins allow you to enhance and extend the functionality of your hybrid app. For example, you could add accelerometer, camera, file, or push notification support using plugins.

2. Project Hooks

PhoneGap hooks allow you to run custom scripts before and/or after almost any command. This can become a powerful way to extend PhoneGap in ways that it does not yet support, such as moving around artifacts or linking into a continuous integration system.

3. Debugging an App

When something goes wrong, you need to Web Inspector! PhoneGap doesn't reinvent the wheel when it comes to debugging your web app. Instead, it tries its best to support the existing native and web debugging tools, such as those provided by the platform IDEs and Webkit Web Inspector.