Currently utilizing this feature within my Ionic 3 application. The plugin has been successfully installed, and the cordova-plugin-email-composer
folder is present in the plugins
directory. Despite multiple attempts of uninstalling and reinstalling, an error message stating "plugin_not_installed" persists.
config.xml
<plugin name="cordova-plugin-email-composer" spec="^0.8.10" />
TypeScript
this.emailComposer.isAvailable().then((available: boolean) =>{
if(available) {
let email = {
to: '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a1c4d9c0ccd1cdc4e1c4d9c0ccd1cdc48fc2cecc">[email protected]</a>',
subject: "User Feedback",
body: "",
isHtml: true
};
this.emailComposer.open(email);
}else{
this.presentToast("Your mobile device does not have any email applications available.")
}
}).catch(error=>{
this.presentToast(JSON.stringify(error)); //error message reads Plugin_not_installed
});