Cordova email composer doesn't work on Android

Viewed 4880

I have a big problem with this plugin:

https://github.com/katzer/cordova-plugin-email-composer

when i tried to send email on ios, all work well. but when i tried in Android, it did nothing.. And i receive the callback "email view is dismissed". I tested it on some device with different android version and in a blank project. My simple code:

cordova.plugins.email.open({app: 'mailto'}, function () {
    console.log('email view dismissed');
}, this);
3 Answers

add the following code at the indicated address, in new versions of android it requests the action of sending mail

...\platforms\android\app\src\main\AndroidManifest.xml

<queries>
    <intent>
    <action android:name="android.intent.action.SENDTO" />
    <data android:scheme="mailto" />
    </intent>
</queries>
Related