如何在没有“MFMessageComposeViewController”的iPhone上以编程方式发送短信?
我想从iPhone发送短信
,但 MFMessageComposeViewController
弹出消息,我想当应用程序中发生事件或通知时,发送 SMS c>。可以通过
iOS SDK
I would like to send an SMS
from an iPhone but MFMessageComposeViewController
pops up the message,I would like to send the SMS
when an event or notification occurs in the application.Is it possible through iOS SDK
or are there any legitimate low level function which can be used to accomplish the same.
不可能通过iOS SDK以编程方式发送SMS消息。你可以想象,如果SDK允许这样做,它会在开发者滥用方面打开一个巨大的蠕虫。
It's not possible to send SMS messages programmatically through the iOS SDK. As you can imagine, if the SDK allowed this, it would open a huge can of worms in terms of developer abuse.
如果SMS消息不必来从用户的电话号码,你可以看看Twilio API(http://www.twilio.com/sms)。
If the SMS messages don't have to come from the user's phone number, you can take a look at the Twilio API (http://www.twilio.com/sms).