How to send and receive text messages without MFMessageComposeViewController?

前端 未结 3 1416
忘了有多久
忘了有多久 2021-01-29 07:08

I want to send and receive text messages without showing MFMessageViewController from my application. Could anybody tell me how is it possible?

3条回答
  •  悲&欢浪女
    2021-01-29 07:41

    You can't do it without MFMessageComposeViewController. Apple won't allow to send SMS without user interaction.

    I've alternate solution of this, out of scope of iOS. Use web service API. Create a web service at server side that send a message to specific number(s) that accept numbers as parameters with request.

    At specific time interval (according to your requirement) send a web service call with number as request parameter.

    Web server can do it. It can send message to any device.

提交回复
热议问题