Technical Q&A QA1944
Sending SMS Programmatically
Q: Is it possible to send an SMS message programmatically, without user interaction?
A: No. You can use the MessageUI framework to send a message, but that requires explicit confirmation from the user. There’s no way to send a message without that confirmation. This is not an accidental ommission but a deliberate design decision.
Depending on your specific requirements you may be able to achieve your goal by setting up your own web service for sending SMS messages. Your app could then use TCP/IP networking to ask the web service to send an SMS message on its behalf.
Document Revision History
Date | Notes |
---|---|
2017-04-14 | New document that discusses the inability to send SMS messages without user interaction. |
Copyright © 2017 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2017-04-14