taljacobson / flutter_mailer

A wrapper on top of MFMailComposeViewController from iOS and Mail Intent on android
MIT License
47 stars 39 forks source link

Mailer send response #28

Closed taljacobson closed 4 years ago

taljacobson commented 4 years ago

[breaking change] send method will now return a Future<MailerResponse>, #20
this should not really be breaking since it used to return a Future<void> and its response would just be ignored.
on [ios] uses mfmailcomposeresult

on android returns android.

android seems very limiting for knowing if an intent was canceled or successfull. public boolean onActivityResult(int requestCode, int resultCode, Intent intent) resultCode always return 0 whether sending, discarding an email, or cancelling the share app picker.

taljacobson commented 4 years ago

published as 0.6.0-dev.1 im having a hard time getting a proper ios device, so if any one can help test this, it will be much appriciated.