PhoneGap Email Composer Plugin

后端 未结 7 1566
再見小時候
再見小時候 2021-01-07 10:57

I\'ve built a simple jQuery Mobile based app, and trying to compile it with Phonegap. I\'d like the users to be able to send some content from the app via email, but I can\'

相关标签:
7条回答
  • 2021-01-07 11:27

    As naugtur suggested, try some troubleshooting techniques, like.. does it work if you remove temporarily those custom scripts: jsStuff.js and json2.js? I know they may be required in your app but it may help you locate the source of the problem. Try sending console messages or alerts inside you doEmail function. Hope it helps.

    0 讨论(0)
  • 2021-01-07 11:29

    I think you have to change it to <a href="javascript:doEmail()">Send Mail</a> , onclick isn´t a iphone event

    0 讨论(0)
  • 2021-01-07 11:31

    For those finding this question whilst trying to get an Email Composer to work, you no longer need to add things to the plist. The new CLI interface handles that for you.

    The most current version of the Email Composer plugin is here - https://github.com/katzer/cordova-plugin-email-composer

    And the way to add it to your project is this in the command line: cordova plugin add de.appplant.cordova.plugin.email-composer && cordova prepare

    0 讨论(0)
  • 2021-01-07 11:33

    Okay, I know this is an old thread but it looks like the correct answer has not been posted. For future readers who may stumble on this:

    You have to add the EmailComposer plugin into your PhoneGap.plist file, under plugins add a new row with "EmailComposer" in the left column, and "EmailComposer" in the right column.

    0 讨论(0)
  • 2021-01-07 11:34

    Seems like the problem was related to the way I added the plugin files to the xCode project. If you need extra details: http://groups.google.com/group/phonegap/browse_thread/thread/6fd7d73d3532effd/4ae9daa0b746ceb5#4ae9daa0b746ceb5

    0 讨论(0)
  • 2021-01-07 11:43

    You must add the plugin into the PhoneGap.plist.

    Add a new entry with Key "EmailComposer" and value "EmailComposer"

    0 讨论(0)
提交回复
热议问题