sidlatau / flutter_email_sender

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

mail sent save and cancelled event is implemented in iOS #104

Open prkay opened 6 months ago

prkay commented 6 months ago

Pull Request Summary

This pull request aims to address an issue mentioned in GitHub Issue #72 related to the iOS mail sending functionality in the Flutter Email Sender plugin.

Bug Description

In the iOS environment, there was a discrepancy observed in the event handling for mail sending. Specifically, the events were returned prematurely, sometimes before the user returned to the app, creating inconsistency in the expected behavior.

Proposed Changes

Implemented event handling for all iOS mail sending options using an enumerated structure to ensure comprehensive coverage and proper handling of different scenarios.

Modified the event handling logic specifically for iOS 17 to resolve the issue of events returning before the user's return to the application, ensuring synchronization with the user's actions.

Impact and Testing

The changes included in this PR were thoroughly tested across various iOS versions, with a focus on iOS 17, to verify the resolution of the premature event issue. Additionally, these changes did not affect the functionality on other platforms.

Contributor Note

Developers reviewing this pull request are encouraged to examine the changes made in event handling for iOS, especially focusing on iOS 17 compatibility, and ensure the resolution of the reported issue without adverse effects on the plugin's functionality across different iOS versions.

This summary provides an overview of the problem, the proposed changes, their impact, and encourages reviewers to pay particular attention to the iOS 17 compatibility and event handling modifications.