在iPhone OS中读取通话记录

时间:2022-09-28 09:07:53

I'm doing some research on the feasibility of an iPhone application, and can't find any indication in Apple's documentation that an iPhone app can read the call history of the phone, specifically the number/address book entry called, when, and the duration.

我正在研究iPhone应用程序的可行性,并且在Apple的文档中找不到任何迹象表明iPhone应用程序可以读取手机的通话记录,特别是所谓的号码/地址簿条目,以及持续时间。

Does anyone know if this is possible, and how?

有谁知道这是否可能,以及如何?

Note: The purpose is to remove the need for the user to perform this data-entry themselves. The application is for recording interactions with customer service centers.

注意:目的是消除用户自己执行此数据输入的需要。该应用程序用于记录与客户服务中心的交互。

5 个解决方案

#1


10  

Unfortunately you can't access the call history. The only User Data you have API access to is the address book. You can also access photos/pictures but only by starting an iPhone-controlled dialog that allows the user to choose a single image.

很遗憾,您无法访问通话记录。您有API访问权限的唯一用户数据是地址簿。您也可以访问照片/图片,但只能启动iPhone控制的对话框,允许用户选择单个图像。

It's a bit sucky, hopefully this will be expanded in future versions.

这有点太糟糕了,希望这将在未来的版本中得到扩展。

#2


3  

You can access call history on the Mac by sniffing around the iTunes directory. There are apps out there that do this.

您可以通过浏览iTunes目录来访问Mac上的通话记录。有应用程序可以做到这一点。

#3


2  

AFAIK you can't access call history. The address book is a database of contacts, not call information.

AFAIK您无法访问通话记录。地址簿是联系人的数据库,而不是呼叫信息。

You can read more about the address book in the SDK's "Address Book Programming Guide for iPhone OS."

您可以在SDK的“iPhone OS通讯簿编程指南”中阅读有关通讯录的更多信息。

#4


2  

Seems the only way is to read the log from the iTunes side but now from the phone:

似乎唯一的方法是从iTunes端读取日志,但现在从手机中读取日志:

http://arstechnica.com/apple/news/2007/11/iphonelogd-another-solution-for-viewing-your-iphone-call-log.ars

http://arstechnica.com/apple/news/2007/11/iphonelogd-another-solution-for-viewing-your-iphone-call-log.ars

#5


2  

I did some reading in which states that you can access the call history on the iphone. It may be dated but worth a shot. Apparently the history is/was held in just a sqlite db on a table called call. The db is/was located at /private/var/mobile/library/CallHistory/call_history.db

我做了一些阅读,其中说明你可以访问iphone上的通话记录。它可能过时但值得一试。显然历史记录只是在一个叫做call的表上的sqlite数据库中。数据库位于/private/var/mobile/library/CallHistory/call_history.db

If you use FMDB, you can simply do something like this.

如果你使用FMDB,你可以简单地做这样的事情。

FMResultSet *rs = [db executeQuery:@"Select * from Call"];

FMResultSet * rs = [db executeQuery:@“Select * from Call”];

to get the call history

获取通话记录

#1


10  

Unfortunately you can't access the call history. The only User Data you have API access to is the address book. You can also access photos/pictures but only by starting an iPhone-controlled dialog that allows the user to choose a single image.

很遗憾,您无法访问通话记录。您有API访问权限的唯一用户数据是地址簿。您也可以访问照片/图片,但只能启动iPhone控制的对话框,允许用户选择单个图像。

It's a bit sucky, hopefully this will be expanded in future versions.

这有点太糟糕了,希望这将在未来的版本中得到扩展。

#2


3  

You can access call history on the Mac by sniffing around the iTunes directory. There are apps out there that do this.

您可以通过浏览iTunes目录来访问Mac上的通话记录。有应用程序可以做到这一点。

#3


2  

AFAIK you can't access call history. The address book is a database of contacts, not call information.

AFAIK您无法访问通话记录。地址簿是联系人的数据库,而不是呼叫信息。

You can read more about the address book in the SDK's "Address Book Programming Guide for iPhone OS."

您可以在SDK的“iPhone OS通讯簿编程指南”中阅读有关通讯录的更多信息。

#4


2  

Seems the only way is to read the log from the iTunes side but now from the phone:

似乎唯一的方法是从iTunes端读取日志,但现在从手机中读取日志:

http://arstechnica.com/apple/news/2007/11/iphonelogd-another-solution-for-viewing-your-iphone-call-log.ars

http://arstechnica.com/apple/news/2007/11/iphonelogd-another-solution-for-viewing-your-iphone-call-log.ars

#5


2  

I did some reading in which states that you can access the call history on the iphone. It may be dated but worth a shot. Apparently the history is/was held in just a sqlite db on a table called call. The db is/was located at /private/var/mobile/library/CallHistory/call_history.db

我做了一些阅读,其中说明你可以访问iphone上的通话记录。它可能过时但值得一试。显然历史记录只是在一个叫做call的表上的sqlite数据库中。数据库位于/private/var/mobile/library/CallHistory/call_history.db

If you use FMDB, you can simply do something like this.

如果你使用FMDB,你可以简单地做这样的事情。

FMResultSet *rs = [db executeQuery:@"Select * from Call"];

FMResultSet * rs = [db executeQuery:@“Select * from Call”];

to get the call history

获取通话记录