How to programmatically send SMS on the iPhone without “MFMessageComposeViewController ”?

余生长醉 提交于 2019-12-18 09:49:44

问题


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.


回答1:


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.

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).



来源:https://stackoverflow.com/questions/13949082/how-to-programmatically-send-sms-on-the-iphone-without-mfmessagecomposeviewcont

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!