2

I need to get access to the call log of an iphone programatically. I came to know that it is not possible to get the call log in ios sdk. Is there any new API's available to get access of the call log of an iphone approved by apple. I've gone through the app "Agile Reply" in Appstore which accesses the call log of an iphone.

Guy's any suggestion from ur side will be deeply appreciated.

JOM
  • 8,139
  • 6
  • 78
  • 111
Monish
  • 53
  • 8

2 Answers2

2

There is no way to access to the call log.

Mosty Mostacho
  • 42,742
  • 16
  • 96
  • 123
Zakaria
  • 14,892
  • 22
  • 84
  • 125
1

That Agile Reply application does not read the call log of the iPhone, otherwise it would not be on the App Store.

Instead, what it probably does is it registers itself with a CTCallCenter, as described in this answer, so that when it is running and a call comes in it's able to know the number of that call. It's then able to reply with a text message when the user opens it after the call is completed.

Community
  • 1
  • 1
Brad Larson
  • 170,088
  • 45
  • 397
  • 571
  • @Brad Larson: How can we know the phone number of the call that comes in using CTCallCenter. – Monish Mar 12 '11 at 06:52
  • @Monish - Set up a call event handler block and provide it to the CTCallCenter. You'll receive updates for every call that happens when your application is active or in the background. See Don's answer here for an example of this: http://stackoverflow.com/questions/3319805/detecting-call-state-in-ios4/3320212#3320212 . Perhaps the `callID` property on the CTCall instance given to that callback will let you figure out the phone number for the call (I've never tried this myself). – Brad Larson Mar 12 '11 at 14:36
  • @Brad Larson:But I am totally confused how to get the phone number using CallID propery.If possib can u post any sample code so that it is really helpful to me. – Monish Mar 13 '11 at 11:01
  • Can anyone please help me how to get rid of this..!! – Monish Mar 18 '11 at 10:14
  • @Monish, have you managed to retrieve the CTCall of the declined call? Now you only need to retrieve the phone number from CallID? – Michael Kessler Mar 23 '11 at 14:42
  • @Micheal Kessler:Yes I managed to get the call status and callID and now I want to retrieve only the Phone number. – Monish Mar 24 '11 at 18:23