- Sending SMS in the background for phone number verification

We are building a safety app where the user's identity matters
when they ask for help. The identity is tied to the user's cell phone number
which is used during registration as well as used if the user logs out or logs
back into their account.
We need to send an SMS to verify the user's installed SIM
phone number Vs the registered phone number.

However, for user's experience quality, we don't want the
user to manually click send for the SMS. Instead, we want the SMS to be sent in
the background. But we want the user to opt-in and authorize sending the SMS
during the login/registration process once.
How can we accomplish this for iOS?
The only supported way to send SMS as the user is via the MessageUI. See QA1944 Sending SMS Programmatically.

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"

WWDC runs Mon, 22 Jun through to Fri, 26 Jun. During that time all of DTS will be busy with conference duties.
- Sending SMS in the background for phone number verification
 
 
Q