简体   繁体   English

访问短信内容iPhone

[英]Accessing SMS Content iPhone

I want to confirm if it is allowed to access the SMS content programatically. 我想确认是否允许以编程方式访问SMS内容。 Are developers allowed to access the content of incoming/outgoing SMS's in the iPhone? 是否允许开发人员访问iPhone中传入/传出SMS的内容?

Can I access the incoming/outgoing sms messages and retrieve the information related to them eg sms sent by, sent to,body, time etc using my custom built application. 我可以使用自定义构建的应用程序访问传入/传出的短信并检索与之相关的信息,例如,发送,发送给,身体,时间等的短信。

No you cannot do so through public API. 不,您不能通过公共API来这样做。

You may have luck with private API and jailbreak, but I'd guess this is not what allowed means here. 您可能对私有API和越狱感到幸运,但是我想这不是这里允许的意思。

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." Apple Dev Library说:“在iOS 4.0及更高版本中,您可以从应用程序内发送文本消息。此功能仅用于发送消息。传入的SMS消息将转到内置的Messages应用程序。” 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. 因此,显然不是使用iPhone应用程序,但是您可以使用桌面应用程序访问它们。 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." “ Apple将您的文本消息保存在iPhone备份中,无论它们是本地存储在您的PC上,还是它们是否属于iCloud备份的一部分-您都应该拥有。这很好。不幸的是,它们并没有分开。但是,您可以通过文件系统访问它们。如果您在Apple机器上本地备份,则可以在“库”>“应用程序支持”>“ MobileSync”>“备份”下找到该文件。该文件夹中应该有多个文件夹,每个文件夹都具有手机的不同备份映像。每个文件夹都应有一个名为“ 3d0d7e5fb2ce288813306e4d4636395e047a3d28.mddata”的文件。这些是您的文本,采用SQLite数据库格式。

You'll need to use SQLite to decipher the file. 您将需要使用SQLite来解密文件。 There are some instructions here: 这里有一些说明:

How to Access and Read the iPhone SMS Text Message Backup Files . 如何访问和阅读iPhone SMS短信备份文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM