Bug Report Email
Goal
Check if mail is available, then open the mail composer with pre-filled details.
Actions used
MailComposerCanSendMailComposerShowMailComposerGetError(optional)
Variables
canSend(Bool)
Flow
State:
CanSendMailAction:
MailComposerCanSend→canSendBranch:
If
canSend→ShowMailComposerElse → show “Mail not configured”
State:
ShowMailComposerAction:
MailComposerShowExample inputs:
toRecipients:["[email protected]"]subject:"Bug Report"body:"Describe the issue..."addScreenshot:true(optional)
Events:
closedWithSentEvent→ SentclosedWithSavedEvent→ Saved draftclosedWithCancelledEvent→ CancelledclosedWithUnknownEvent→ Unknown (optional handling)closedWithFailedEvent→MailComposerGetError(optional) then show error
Notes
“Sent” means the user queued the email in the outbox; delivery is handled by the mail client/network.
Last updated
Was this helpful?