Email component not working on Android

I am trying to send email using the composer email plugin. Everything works well with ios, but on Android I get an error

12 119371 log Error in callback SuccessId: EmailComposer1473338210: TypeError: undefined is not a function 13
119382 error Uncaught TypeError: undefined is not a function, http://172.31.5.9:8100/cordova.js , line: 312

with another version of the email compiler, "com.jcjee.plugins.emailcomposer 1.4.6" everything works well. But with this latest version, the file is attached to the file.

With cordova email composer on ios, I can attach a PDF without any problems, so if possible, I want to resolve this error. Can someone help me?

+5
source share
1 answer

The latest version of cordova-plugin-email-composer (0.8.3) has a known bug with Android, and I still have to find a way to make it work. 0.8.2 will work with Android, but it will not work with iOS. The workaround that I am currently using (until this problem is resolved) is a bash script that removes the installed plugin and then installs a working version for the platform that is being built. Not that I would prefer, but it works and is quickly implemented.

0
source

Source: https://habr.com/ru/post/1245101/


All Articles