03-10-2014 03:48 AM
I would like to know if there are any native libraries that allow you to send email, I have to make a plugin for apache cordova but the only way I've found around it is through the cascades apis .... but these are useless in a plugin of cordova.
Thanks at All in advance!
03-10-2014 09:17 AM
You can use Invocation to send email. I'm not sure if you need to do this in the background, or if it's okay for the user to see the composer card or not, but it may be what you're looking for.
Here's the invocation info: https://developer.blackberry.com/html5/documentati
...and there's a sample app here: https://github.com/blackberry/BB10-WebWorks-Sample
03-11-2014 03:45 AM
this is the solution for those who develop with bb10 webworks? but I do not have a webworks app but created with apache cordova!
I think my only way is to create a plugin in C + + or am I wrong?
03-11-2014 08:45 AM
Well you're not wrong in a sense, but there is a way easier way than building a C++ plugin in this case
You're right about the email composer card being a WebWorks thing. WebWorks 2.0 is actually powered by Cordova, so while there isn't a Cordova API for the email composer card, using WebWorks APIs is a lot easier (and makes more sense in this case to me) than creating a plugin.
Checkout the APIs here: https://developer.blackberry.com/html5/apis/v2_0/