How to get call date and duration of calls made in phone

Hi,


I know this question has been asked before and it all ends up in the same "no-can-do" answer but I'm in the need to ask it myself to get evidence for the company I work for.


I'm building an app (iOS with Swift) to keep track of my own cellphone usage to then compare it with my mobile plan, for that I need to get the duration and date of each call made from that phone. The only way to get that information that I could think of is by checking the phone's call history.

  • Is there a way to get the phone's call history or log?
  • Is there an iOS version in which this is or was allowed?
  • Is there any public API to get this information form?
  • Is there any way to get permission from Apple or some kind of entitlement to allow us to get it?


According to some co-workers you could get that using CTCallCenter (CoreTelephony) but API Reference says it's deprecated (https://developer.apple.com/reference/coretelephony/ctcallcenter)


I would really appreciate any information or facts provided.


Cheers.

Replies

Hi @desarrollador.0001,

I am also looking a solution How to get call date, caller number and duration of calls made in phone. have you found any solution ?

How to get call date, caller number and duration of calls made in phone.

It is not possible to do this on the device. The iOS SDK includes no mechanism for getting at the iPhone’s call database.

If you’re working in a managed environment you may be able to get some of this information via MDM. Alternatively, you could work with your chosen cellular carrier to get the information from them.

In a non-managed environment, there is simply no way to get this information programmatically.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"