如何在没有“MFMessageComposeViewController”的iPhone上以编程方式发送短信? [英] How to programmatically send SMS on the iPhone without "MFMessageComposeViewController "?

查看:223
本文介绍了如何在没有“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).

这篇关于如何在没有“MFMessageComposeViewController”的iPhone上以编程方式发送短信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆