Sending text message SMS without user intervention

此生再无相见时 提交于 2019-11-27 08:53:12

问题


Is it possible to send sms via iphone without user intervention? I already know about MessageUI framework and MFMessageComposeViewController class, but this option requires user to click Send button when MGMessageComposeViewController is presented. I would like the device to automatically, without my help send a text message when certain conditions are met. (I have some sensors connected to the device)


回答1:


If you want to be able to send sms without user's interaction, consider using some third party gateway. TextMagic provides nice api to send sms, but it is not free. At some point it charges you money. But, they have nice and simple api to use.

Look at this,

http://api.textmagic.com/https-api/textmagic-api-commands#send




回答2:


No. You can only open a message ready to send but you cannot send it automatically.



来源:https://stackoverflow.com/questions/31947064/sending-text-message-sms-without-user-intervention

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