sidlatau / flutter_email_sender

Allows send emails from flutter using native platform functionality.
Apache License 2.0
146 stars 81 forks source link

Android: FlutterEmailSender.send future never completes #73

Closed zuzi-m closed 3 years ago

zuzi-m commented 3 years ago

Hi, I'm using the latest version 5.0.1 of this package with Android and the Future returned by FlutterEmailSender.send() never seems to be completed (tested in both emulator as well as real device).

Steps to reproduce: try to call await FlutterEmailSender.send() in an async method and nothing after this call gets executed. If you don't await the future everything will continue normally (though the point is to await the result of the future)

Thanks for looking into it. I think I even have a fix for this so if you want I can open a PR with the fix

vytautas-pranskunas- commented 3 years ago

Any update on this? Same here.... @zuzi-m if you open PR it would be a lot quicker

zuzi-m commented 3 years ago

I opened a PR #74 for this Took me a while to figure out but seems like that fixes it

sidlatau commented 3 years ago

v5.0.2 is published with the fix.