xcode MFMessageComposeViewController 的替代方案

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6919088/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 21:38:34  来源:igfitidea点击:

alternative for MFMessageComposeViewController

objective-ciosxcode

提问by aporat

I browsed around and saw that MFMessageComposeViewController doesn't support MMS, however some suggested using third party vendor to send MMS with photo attachments.

我浏览了一下,发现 MFMessageComposeViewController 不支持彩信,但是有些人建议使用第三方供应商发送带有照片附件的彩信。

Someone know about a free vendor, or examples on using these mms email gateways on iOS devices with photo attachments?

有人知道免费供应商,或在带有照片附件的 iOS 设备上使用这些 mms 电子邮件网关的示例吗?

I know how to send a text message using a the email gateway, but not a photo.

我知道如何使用电子邮件网关发送短信,但不知道如何使用照片。

Also, anyone heard about a custom-made controller that uses those email gateways, that i can integrate into my app, in the same way i intrgrate MFMessageComposeViewController?

此外,有人听说过使用这些电子邮件网关的定制控制器,我可以将其集成到我的应用程序中,就像我集成 MFMessageComposeViewController 一样?

回答by rich

Unfortunately, there is no way to do this currently. The iPhone has no public API for sending MMS. Only way you can achieve this is to use a providers MMS gateway directly, but this would not work worldwide. These three other stack overflow questions about MMS had the same conclusion:

不幸的是,目前没有办法做到这一点。iPhone 没有用于发送彩信的公共 API。实现此目的的唯一方法是直接使用提供商 MMS 网关,但这在全球范围内不起作用。这三个关于 MMS 的堆栈溢出问题有相同的结论:

How can my app send MMS with a photo?

我的应用程序如何发送带有照片的彩信?

Attach Local image in MMS in iphone

在 iphone 的彩信中附加本地图片

For the current iphone version, MMS is possible or not?

对于目前的iphone版本,彩信是否可以?

回答by abdus.me

To programmatically send an MMS, you have four options:

要以编程方式发送彩信,您有四个选项:

  1. Use an email -> MMS gateway (e.g. 2125551234(at)vzwpix.com) - check out a full list of US email gateways at http://www.tipb.com/2009/01/09/i...

  2. Use a GSM/GPRS/EDGE/CDMA modem to send/receive via the MM1 protocol.

  3. Use a messaging aggregator such as mBlox, OpenMarket, etc or use a third party gateway who can abstract alot of the connection details such as Websnapme (www.websnapme.com).

  4. Use a direct connection to a carrier and use the MM7 protocol.

  1. 使用电子邮件 -> MMS 网关(例如 2125551234(at)vzwpix.com) - 在http://www.tipb.com/2009/01/09/i查看美国电子邮件网关的完整列表...

  2. 使用 GSM/GPRS/EDGE/CDMA 调制解调器通过 MM1 协议发送/接收。

  3. 使用消息聚合器,例如 mBlox、OpenMarket 等,或使用可以抽象出大量连接细节的第三方网关,例如 Websnapme (www.websnapme.com)。

  4. 使用与运营商的直接连接并使用 MM7 协议。

Option 4 is pretty much impossible for most people/companies so you would need to explore options 1 to 3.

对于大多数人/公司来说,选项 4 几乎是不可能的,因此您需要探索选项 1 到 3。