Custom Plug-ins for the iOS Hybrid Web Container

Integrate PhoneGap plug-ins with the iOS Hybrid Web Container.

In general, adding a custom plug-in to Hybrid Web Container is identical to adding a plug-in to any PhoneGap application. The basic steps are as follows (see the PhoneGap Wiki for details).
  1. Implement the plug-in class that extends PGPlugin in an .h and .m file.
  2. Implement the PhoneGap plug-in JavaScript.
  3. Edit the PhoneGap plist file with a new plug-in entry.
  4. Use the plug-in from JavaScript.