hypery2k / cordova-email-plugin

Edit and send email messages
Apache License 2.0
44 stars 29 forks source link

Doesn't work? #59

Closed youradds closed 7 years ago

youradds commented 7 years ago

Hi,

I used to use the katzer version of this plugin, but I can't get it to work (and it looks like it was a while since it was last updated!). I'm trying to work out why this won't work for me:

Uncaught TypeError: undefined is not a function

I'm calling it with this in config.xml:

<plugin spec="https://github.com/hypery2k/cordova-email-plugin" source="git" />

I see the file in the "assets" folder in the APK, so I'm a bit confused as to what I'm doing wrong?

Thanks

Andy

hypery2k commented 7 years ago

use release not git directly

youradds commented 7 years ago

So how do you do that then? Cos I've tried it all sorts of ways, and everything broke! (either wouldn't build Phonegaps end, or gave a JS error)

hypery2k commented 7 years ago

did you tried this? https://github.com/hypery2k/cordova-email-plugin#phonegap-build

youradds commented 7 years ago

Yup, and I get:

phonegap.js:314 Uncaught TypeError: fn is not a function
    at onAvailable (email_composer.js:101)
    at Object.callbackFromNative (phonegap.js:293)
    at <anonymous>:1:9

Calling with:

                                             cordova.plugins.email.open({
                                                 to:         'me@site.co.uk', // email addresses for TO field
                                                 subject:    'Competition export file', // subject of the email
                                                 body:       outputString, // email body (for HTML, set isHtml to true)
                                                 isHtml:     false, // indicats if the body is HTML or plain text
                                             });

Cheers

Andy

youradds commented 7 years ago

This is what I get:

2017-05-09 at 15-32-40