When I set pre-defined body, it works on ios but not on android.
Here's my code:
EmailComposer.isAvailable().then((available: boolean) =>{
let email = {
app: 'mailto',
subject: this.card.title,
body: this.card.toHtml(true),
isHtml: true
};
EmailComposer.open(email).then((value) => {
console.log("Success:" + value);
}).catch((reason) => {
console.log("Fail:" + reason);
});
}).catch(reason => {
console.log(reason);
});
Note that I am using Ionic2 framework.
Please help me to solve this problem.
Thanks.
When I set pre-defined body, it works on ios but not on android. Here's my code: EmailComposer.isAvailable().then((available: boolean) =>{ let email = { app: 'mailto', subject: this.card.title, body: this.card.toHtml(true), isHtml: true }; EmailComposer.open(email).then((value) => { console.log("Success:" + value); }).catch((reason) => { console.log("Fail:" + reason); }); }).catch(reason => { console.log(reason); });
Note that I am using Ionic2 framework. Please help me to solve this problem. Thanks.