在iPhone中获取短信和电子邮件的内容? [英] Get content of SMS and email in iPhone?

查看:221
本文介绍了在iPhone中获取短信和电子邮件的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实现一个可以读取接收到的短信和电子邮件的应用程序。我的意思是将文本内容转换成语音。所以我需要先访问短信和电子邮件。据我所知,在默认SDK中没有提供这样的API。有什么其他方式可以实现吗?
短信存储在数据库(sms.db)中吗?如何访问他们?这只能是越狱吗?
电子邮件怎么样?它们是否仅存储在邮件服务器中?如何在我的应用程序中获得他们?

I'm trying to implement an app that can read received SMS and email out. I mean convert the text content to voice. So I need to access to SMS and email first. As far as I know, there is no such API provided in the default SDK. Is there any other way to realize it? Are the SMS messages stored in database(sms.db)? How to access to them? Is it only possible on jailbroken iphones? And what about emails? Are they only stored in mail servers? How can I get them in my app?

对不起,提出这么多问题。我在这个问题上花费了很多天,但没有找到任何解决方案。

Sorry for asking so many questions. I have spent many days on this problem, but havn't found any solutions...

推荐答案

你不能。根据设备功能编程指南:发送短信


在iPhone OS 4.0及更高版本中可以从您的应用程序中发送短信。此功能严格用于发送消息。收到的短信将发送到内置的消息应用程序。

In iPhone OS 4.0 and later, you can send text messages from within your application. This feature is strictly for sending messages. Incoming SMS messages go to the built-in Messages app.

通过启用应用程序访问电子邮件和短信,存在严重的隐私和安全问题,我很高兴苹果选择不这样做。

There are serious privacy and security concerns with enabling app access to emails and SMS, and I am glad Apple choose not to do it.

这篇关于在iPhone中获取短信和电子邮件的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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