开发者

Accessing SMS Content iPhone

I want to confirm if it is allowed to access the SMS content programatically. Are developers allowed to access the content of incoming/outgoing SMS's in the iPhone?

Can I access the incoming/outgoing sms messages and retrieve the information relat开发者_Go百科ed to them e.g sms sent by, sent to,body, time etc using my custom built application.


No you cannot do so through public API.

You may have luck with private API and jailbreak, but I'd guess this is not what allowed means here.


The Apple Dev Library says, "In iOS 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." I wish they would explain why they won't allow programs to access messages.

So not with an iPhone app, apparently, but you can access them with a desktop app. See here.

"Apple saves your text messages in its iPhone backups, whether they’re saved locally on your PC or whether they’re part of an iCloud backup — which you should have. That’s good! Unfortunately, they’re not separated out. However, you can access them through the filesystem. If you back up locally on an Apple machine, you can find the file under Library > Application Support > MobileSync > Backup. There should be multiple folders there, each with a different backup image of your phone. Each of the folders should have a file named ” 3d0d7e5fb2ce288813306e4d4636395e047a3d28.mddata.” Those are your texts, in SQLite database form."

You'll need to use SQLite to decipher the file. There are some instructions here:

How to Access and Read the iPhone SMS Text Message Backup Files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜