0

Is there any way to access the last time an ABAddressBook contact was accessed, interacted with, called, miss-called, etc.

I'm aware of the ABPerson properties, specifically kABPersonModificationDateProperty. But I was wondering if there any way of knowing more about the users interaction with that contact.

sathiamoorthy
  • 1,488
  • 1
  • 13
  • 23
theDuncs
  • 4,649
  • 4
  • 39
  • 63
  • Only on jailbroken devices. But i am not suggesting to do that, i am against any kind of jailbreaking of iOS devices. – avuthless Jan 24 '14 at 10:55

2 Answers2

0

No apple does not allow access to the Call list. Since a call information is stored in the call and not in the addressbook there is no way to get the information you want from the addressbook.

rckoenes
  • 69,092
  • 8
  • 134
  • 166
0

I don't think you can access called history in iOS, especially after iOS 4. You can however know that a phone call was dialled using CoreTelephony framework.

I do it in applicationDidBecomeActive of my AppDelegate.m

...
    typeof(self) __weak weakSelf = self;
        self.center = [[CTCallCenter alloc]init];
        self.center.callEventHandler = ^(CTCall *call) {
            if(call.callState == CTCallStateDialing) {
                weakSelf.callWasMade = YES;
            }
        };
...
thandasoru
  • 1,558
  • 2
  • 15
  • 41