Skip to content

EmailComposer.getPlugin.getClients is not a function  #380

@daxter44

Description

@daxter44

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);});

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions