[英]How to send and receive text messages without MFMessageComposeViewController?
I want to send and receive text messages without showing MFMessageViewController
from my application. 我想发送和接收文本消息而不显示来自我的应用程序的
MFMessageViewController
。 Could anybody tell me how is it possible? 谁能告诉我这怎么可能?
不可能,除非您使用第三方API发送/接收短信。
您必须使用Web服务和Apple Push Notification Service将消息发送给其他用户,而无需使用MFMessageComposeViewController
You can't do it without MFMessageComposeViewController. 没有MFMessageComposeViewController,您将无法做到。 Apple won't allow to send SMS without user interaction.
Apple不允许在没有用户交互的情况下发送SMS。
I've alternate solution of this, out of scope of iOS. 我有其他解决方案,超出了iOS的范围。 Use web service API.
使用Web服务API。 Create a web service at server side that send a message to specific number(s) that accept numbers as parameters with request.
在服务器端创建一个Web服务,该服务将消息发送到特定号码,该号码接受带有请求的数字作为参数。
At specific time interval (according to your requirement) send a web service call with number as request parameter. 在特定的时间间隔(根据您的要求)中,发送一个带有数字作为请求参数的Web服务调用。
Web server can do it. Web服务器可以做到。 It can send message to any device.
它可以将消息发送到任何设备。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.