Adding 3rd party phonegap plugins to iOS
I've managed to add 3rd party plugins to Android, but I'm having trouble doing the same with iOS.
For android, I followed these steps to add the plugins:
Edit assets/www/files/resources/lib/cordova_plugins.js to add the plugins;
Add the .js files of the plugins to assets/www/files/resources/lib/plugins;
Edit res/xml/config.xml to add my plugins
Add the .java files in the appropriate packages
For iOS, I had trouble finding the equivalent folders from the ones above.
I found config.xml in the root of the project, and cordova_plugins.js in Resources/www/project/files/resources/lib, so I editted those;
I added the .js files to Resources/www/project/files/resources/lib/plugins
I couldn't figure out where the .c and .h files should go, so I added them to the root of the project and also the CordovaLibPlugins folder.
The .ipa compiles with no problem, but the plugin doesn't actually work. The .js seems to be called successfully, but when it tries to exec() the plugin, I get the error message "ERROR: Plugin 'EmailComposer' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml."
On config.xml I have it added as
code
<feature name="EmailComposer">
<plugin name="ios-package" value="EmailComposer"/>
</feature>
/code
Any ideas?