j.lapena
(Jorge Lapeña)
1
Hi, I'm trying to send SMS messages in a Swift application. The idea is that the application sends SMS without user interaction, without MFMessageComposeViewController. Is it possible to do this programmatically?
xwu
(Xiaodi Wu)
2
Hi, you’ve posted a question to the section of the forums about developing the internals of the Swift compiler.
I’ve moved it to the section on using Swift, but since it doesn’t sound like the question is about the Swift language itself, your best bet is probably the Apple Developer forums.
eskimo
(Quinn “The Eskimo!”)
3
Also…
QA1944 Sending SMS Programmatically
Share and Enjoy
Quinn “The Eskimo!” @ DTS @ Apple
sveinhal
(Svein Halvor Halvorsen)
4
As an iPhone user, I’m very glad Apple disallows this. I don’t want an app to randomly send messages on my behalf using my phone number.
Twilio is a great service to send messages. It works worldwide and allows you to register a local number to use as the sender number.
2 Likes
Diggory
(Diggory)
5
If this is a non-iOS application and you genuinely need to send SMSes (e.g. to notify about server failures) you could use a web API to send them.
j.lapena
(Jorge Lapeña)
6
It is an application for emergency alerts, sending the location of the device to previously selected contacts, but it will not send them randomly, but when the user wants to notify an emergency, without having to act with MFMessageComposeViewController