SMS Challenge Invite
Last updated
Check if messaging is available, then open the message composer with a pre-filled invite.
MessageComposerCanSend
MessageComposerShow
MessageComposerGetError (optional)
canSendText (Bool)
State: CanSendMessage
Action: MessageComposerCanSend
Events:
canSendEvent → ShowMessageComposer
cannotSendEvent → show “Messaging not available”
State: ShowMessageComposer
Action: MessageComposerShow
Inputs:
recipients (optional)
body (invite text)
Events:
closedWithSentEvent → Sent
closedWithCancelledEvent → Cancelled
closedWithUnknownEvent → Unknown (optional handling)
closedWithFailedEvent → MessageComposerGetError (optional) then show error
MessageComposerResultCode.Unknown can occur on platforms that don’t provide a definitive result.
Last updated