tags:

views:

86

answers:

1

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...

+4  A: 

You can't. According to the Device Features Programming Guide: Sending an SMS Message:

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.

Franci Penov
I understand that. It is indeed dangerous to enable app to access to emails and SMS. But I just want to read them, nothing vicious. I don't need it to be in app store, either. Just a project for school. Hoping there are some solutions...
smilexx
There's no way for Apple to enable that functionality for "good" apps and disable it for "bad" ones. Even if there was an IAmGoodAppIPromise API that unlocks it, the OS can't trust that only good apps will call that API. Thus, if the "read SMS" feature is there, it's inherently available for both good and bad apps. :-)
Franci Penov