SMS Challenge Invite
Goal
Check if messaging is available, then open the message composer with a pre-filled invite.
Actions used
MessageComposerCanSendMessageComposerShowMessageComposerGetError(optional)
Variables
canSendText(Bool)
Flow
State:
CanSendMessageAction:
MessageComposerCanSendEvents:
canSendEvent→ShowMessageComposercannotSendEvent→ show “Messaging not available”
State:
ShowMessageComposerAction:
MessageComposerShowInputs:
recipients(optional)body(invite text)
Events:
closedWithSentEvent→ SentclosedWithCancelledEvent→ CancelledclosedWithUnknownEvent→ Unknown (optional handling)closedWithFailedEvent→MessageComposerGetError(optional) then show error
Notes
MessageComposerResultCode.Unknowncan occur on platforms that don’t provide a definitive result.
Last updated
Was this helpful?