---
title: "init(phoneNumber:)"
framework: messages
role: symbol
role_heading: Initializer
path: "messages/msrecipient/init(phonenumber:)"
---

# init(phoneNumber:)

Creates a new critical message recipient with the provided phone number.

## Declaration

```swift
init(phoneNumber: String)
```

## Parameters

- `phoneNumber`: A phone number that conforms to the https://www.itu.int/rec/T-REC-E.164-201011-I/en, without any non-numeric characters such as parentheses, periods, dashes, or a plus character (+) that introduces a country code.

## Discussion

Discussion Use this method to create a new critical message recipient. When delivering messages, the framework displays the phone number you provide here. note: If the framework can’t send a message due to an invalid phone number, the framework throws and MSCriticalMessagingError.sendFailed error.
