Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EmailComposer.getPlugin.getClients is not a function #380

Open
daxter44 opened this issue Jan 16, 2023 · 0 comments
Open

EmailComposer.getPlugin.getClients is not a function #380

daxter44 opened this issue Jan 16, 2023 · 0 comments

Comments

@daxter44
Copy link

on iOS 16 simulator, where is not installed any email client I got this error when I try to call .hasClient():

TypeError: EmailComposer.getPlugin().getClients() is not a function.
(In EmailComposer.getPlugin().getClients(function (apps) { resolve(apps & apps.length>0);}))
EmailComposer.getPlugin().getClients() is undefined

Its look like plugin are not installed but i installed it and make sure with npm I -force
And also when I run .open method I don't have any errors and nothing happens

My code :

import { EmailComposer } from '@ionic-native/email-composer/ngx';

public openEmailApp(): void {
this.emailComposer.hasClient().then((hasClient) => {
this.toastService.showGeneralToast('primary', 'Email works'+hasClient);
}).catch((error) => {this.toastService.showGeneralToast('primary', error);});

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant