Messenger
public protocol Messenger : Peripheral
Messenger peripheral interface.
This component allows to send SMS using the remote device cellular connection, when available.
This peripheral can be retrieved by:
device.getPeripheral(Peripherals.messenger)
-
Requests the remote device to send an SMS through the available cellular connection.
Declaration
Swift
func sendSms(recipientAddress: String, content: String) -> Bool
Parameters
recipientAddress
address/phone number of the recipient of the SMS to be sent
content
text content of the SMS to be sent
Return Value
true
if the request was successfully sent to the remote device, otherwisefalse