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).
- Implement the plug-in class that extends PGPlugin in an .h and .m file.
- Implement the PhoneGap plug-in JavaScript.
- Edit the PhoneGap plist file with a new plug-in entry.
- Use the plug-in from JavaScript.