cordova-email-plugin icon indicating copy to clipboard operation
cordova-email-plugin copied to clipboard

Attachments don't work on Android devices with new GMail Version

Open mgaert opened this issue 8 years ago • 1 comments

Hi Team, I'm trying to get the plugin to work with attachments but I'm having serious problems with Android devices wich are using GMail as mail client. I get this error message from gmail "Permission denied for the attachment".

GMail 5.0 added some security checks to attachments it receives from an Intent. These are unrelated to unix permissions, so the fact that the file is readable doesn't matter.

Any help? I am using the IonicFramework V2 with Angular 2

EmailComposer.isAvailable().then(() => {
    let email = {
        attachments: [
            'file:///data/user/0/de.leuze.dcrConfigurator/files/configs/dcr2xxi_config_1.bct'
        ],
        subject: "MyTest",
        body: "",
        isHtml: true
    };
    // Send a text message using default options
    EmailComposer.open(email, this).then(() => { });
}).catch((reason) => {
    console.log(reason);
});

Regards Michael

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/41462901-attachments-don-t-work-on-android-devices-with-new-gmail-version?utm_campaign=plugin&utm_content=tracker%2F12875371&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F12875371&utm_medium=issues&utm_source=github).

mgaert avatar Jan 30 '17 09:01 mgaert

don't now what they exactly did in the new Gmail client and currently really busy with other stuff

hypery2k avatar Feb 04 '17 10:02 hypery2k