Hello, I am wondering about developing my application. Can the new commands available with iOS 18 give me access to the call log (recent calls)? With a request prior to installing the application for example.
No. There isn't any API on the system which will give you access to the user call history.
I saw that Truecaller has just launched an update on iOS to offer the same features as Android, i.e. capture the call log.
Apple allows applications like Truecaller to integrate their spam databases into the iOS caller ID system. I wonder by which command!
The API you're referring to is the "Live Caller ID Lookup" extension, however, as described in "Understanding how Live Caller ID Lookup preserves privacy", that API does a great deal of work to ensure that the lookup service cannot reconstruct the users call history.
https://developer.apple.com/documentation/sms_and_call_reporting/understanding_how_live_caller_id_lookup_preserves_privacy?language=objc
Also, keep in mind that along with the architecture above, we also do a match against the user own contacts before we fallback to live caller ID lookup.
Otherwise, I can perhaps use the "SMS and Call Spam Reporting"
commands and divert them to retrieve the call log.
No, none of those APIs will provide general access to the user call log.
To tell you the truth, I'm trying to find, for my application, a way to retrieve recent call data to create a call dashboard of certain calls, by retrieving the name or phone number, call date, call time and call duration.
Does anyone have an idea?
iOS simply does not provide any API access to the call history. Any app that provides this kind of service for iOS does so by integrating with voip or carrier services and retrieves their data from that external source, not through any iOS API.
__
Kevin Elliott
DTS Engineer, CoreOS/Hardware