Closed johnson512n28 closed 2 years ago
did you read the readme? It should solve all questions
Hans,
Thanks for the response.
Your read me should include a complete example of the plugin’s usage, such as the following.
As it is now, we don’t know what classes to use to interact with the plugin, or if they need to be injected as services or not.
import { Injectable } from @.***/core'; import { EmailComposer, OpenOptions } from 'capacitor-email-composer';
@Injectable({ providedIn: 'root' }) export class EmailService {
constructor() { }
async openEmail(toEmail: string) { const email: OpenOptions = { to: [toEmail], subject: 'Support Question', };
if (await EmailComposer.hasAccount()) {
EmailComposer.open(email);
} else {
console.log(‘No email account.’);
}
} }
Daniel Johnson
From: Hans Krywalsky @. Sent: Tuesday, March 08, 2022 5:22 PM To: EinfachHans/capacitor-email-composer @.> Cc: Daniel Johnson @.>; Author @.> Subject: Re: [EinfachHans/capacitor-email-composer] Usage Example Needed (Issue #9)
did you read the readme? It should solve all questions
— Reply to this email directly, view it on GitHubhttps://github.com/EinfachHans/capacitor-email-composer/issues/9#issuecomment-1062278466, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFJAVE4XXJUWEMRT6YMJGKDU67HJZANCNFSM5QHUQHYA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.**@.>>
hi @johnson512n28 same problem here, do you have some updates?
Hi, thanks for making this plugin and supporting it!
Could you provide an example of how to use this plugin, or describe the steps of importing/injecting it into an Ionic project?