sidlatau / flutter_email_sender

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

[iOS] App doesn't pause or wait for the email client to close like it does on Android #77

Open SRadfordM opened 2 years ago

SRadfordM commented 2 years ago

On Android, the email client opens, and I can wait as long as I want to send or cancel. Then when it returns to the app, the future completes and my code continues. On iOS, the app continues without waiting for the client to complete. It also does not open in a way that pauses the app lifecycle, so I can't even use resume to carry on. Is there anyway to wait for the client to complete and return to the app on iOS?

Using 5.0.0, updated to 5.0.2 and still have the same issue.

mbarmettler commented 2 years ago

could you solve it in the meanwhile? facing similar issues on iOS - the pop-over for selecting the mail client does not show up.

prkay commented 6 months ago

@mbarmettler @SRadfordM I've made a pull request that enhances the functionality of the flutter_email_sender package by enabling event triggers when users perform email actions like sending, canceling, or saving. These updates aim to provide more comprehensive status updates, significantly improving the package's overall capabilities.

Additionally, I've integrated this upgraded version of the flutter_email_sender package into our project using the specific commit 24d942f82ea7c52ff2515bfe643509e472e1a565. This version is particularly beneficial during the development phase, allowing us to leverage the latest changes and thoroughly test the enriched functionality it offers.

Feel free to incorporate this updated package by including the following configuration in your pubspec.yaml file:

dependencies: flutter_email_sender: git: url: https://github.com/sidlatau/flutter_email_sender.git ref: 24d942f82ea7c52ff2515bfe643509e472e1a565 By doing so, you'll be able to access and utilize the enhanced features within your Flutter project.