Contents

send(_:to:)

Sends a critical message to the specified recipient.

Declaration

func send(_ message: MSCriticalMessage, to recipient: MSRecipient) async throws -> Bool

Parameters

  • message:

    The message to send.

  • recipient:

    The recipient to send the message to.

Mentioned in

Return Value

true if the message successfully sends.

Discussion

There’s no user interaction necessary for the framework to send this message. If the message sends successfully, the framework displays a notification indicating sending the message was successful. Upon error, this method throws a MSCriticalMessagingError/errorDomain error.