嗨,我正在使用 phonegap 插件中的 EmailcomposerWithAttachments 插件。我正在使用 Phonegap-2.3.0 和 ios6 模拟器和最新的 Xcode。
我已将 .m、.h 文件放在项目的 Plugins 文件夹中,并将 Js 文件放在 WWW 文件夹中,并使用调用插件
window.plugins.emailComposer.showEmailComposer("Look at this photo","Take a look at <b>this<b/>:",["the.das@gmail.com", "dasthe@gmail.com"],[],[],true,[]);
readme.md 文件中给出的 Node.js 代码。https://github.com/phonegap/phonegap-plugins/tree/master/iOS/EmailComposerWithAttachments
当我运行它时,我在日志中遇到错误。
-[CDVCommandQueue executePending] [Line 103] FAILED pluginJSON = ["INVALID","EmailComposer","showEmailComposer",[{"subject":"Look at this photo","bIsHTML":true,"ccRecipients":[],"attachments":[],"bccRecipients":[],"toRecipients":["the.das@gmail.com","dasthe@gmail.com"],"body":"Take a look at <b>this<b/>:"}]]
请让我知道我在哪里做错了。
在 config.xml 文件<plugin name="EmailComposer" value="EmailComposer" />
中,我将其添加到插件中
谢谢。