Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Email Composer version 0.8.2

$
0
0

@dblanco wrote:

I need to click on a link within the app (email icon), the user's mail application is opened with a preloaded mail.

Previously using the email composer plugin, installing with:
cordova plugin add de.appplant.cordova.plugin.email-composer@0.8.2

And using open method like this:

module.controller('ThisCtrl', function($cordovaEmailComposer) {
var email = {
to: 'info@server.com',
subject: 'Contact',
isHtml: true
};
$cordovaEmailComposer.open(email).then(null, function () {
// user cancelled email
});
}

When updating the application 2016:
1) When installing gives "Error failed to fetch plugin"

2) Installing with:
cordova plugin add https://github.com/katzer/cordova-plugin-email-composer.git
As indicated in http://ngcordova.com/docs/plugins/emailComposer/ mentioned code does not work

3) Installing with:
cordova cordova plugin add-plugin-email-composer
As shown in https://www.npmjs.com/package/cordova-plugin-email-composer the code above does not work.
Besides changing $cordovaEmailComposer.open per cordova.plugins.email.open with this plugin it does not work either.

What is the correct way to install the plugin (or similar) and the code to use? Any example?

Thanks

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>