I have a big problem with this plugin:
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);
I have a big problem with this plugin:
https://github./katzer/cordova-plugin-email-poser
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);
Share
Improve this question
asked Mar 21, 2016 at 10:11
Steph8Steph8
1,6132 gold badges17 silver badges32 bronze badges
2
- Check if plugins are properly installed or not. – Jay Rathod Commented Mar 21, 2016 at 10:43
- 1 yes it's installed.. Because it work on iOS. I found on github that it's a issue with the new version 0.8.3 and the new Cordova 6. – Steph8 Commented Mar 21, 2016 at 11:10
3 Answers
Reset to default 8I solved this problem by installing this:
cordova plugin add https://github./katzer/cordova-plugin-email-poser.git#0.8.2
and remove the last version.
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>
Following the process at this link helped me:
https://forum.ionicframework./t/cordovaemailposer-can-not-send-mail/50395/11
ignore the ionic part.
--EDIT--
You may try with these steps:
Remove the plugin and android platform from your project.
Add the email plugin from here:https://github./katzer/cordova-plugin-email-poser.git
Add the Android platform.
I think the trick is you need to add the plugin before adding the android platform. Sounds silly but worked for me.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744167983a4561396.html
评论列表(0条)