Question

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.

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.

Was it helpful?

Solution

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.

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

OTHER TIPS

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

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

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

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

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

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

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

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

to get the call history

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top