I am using Cordova 2.8.1 and am generated application using Terminal.
And i added EmailComposer.h & EmailComposer.m files in Plugins
and EmailComposer.js file in www.
<script type="text/javascript" charset="utf-8" src="EmailComposer.js"></script>
added in index.html.
In plist file i added key: EmailComposer and value: EmailComposer in Plugins.
And finally in config.xml i added
<feature name="Plugin">
<param name="ios-package" value="CDVPlugin"/>
</feature>
In button action am calling method
Cordova.exec(null, null, 'EmailComposer','showEmailComposer', ["emailID@gmail.com", "message"])
But am getting error as follows
ERROR: Plugin 'EmailComposer' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
-[CDVCommandQueue executePending] [Line 116] FAILED pluginJSON = [
"INVALID",
"EmailComposer",
"showEmailComposer",
[
"emailID@gmail.com",
"message"
]
]
Any suggestions for this problem Thanks in advance.