I want to access the call log of the device in my application. I have R&D a lot and found some posts here on Stack Overflow as well (for example, this one), but none of them have clear vision whether we can do this.
When I look into these apps:
...it seems that they managed to get the call history in their app and customized it as well.
Any help/feasibility would be appreciated.
To access your call history on iPhone, unlock your device and open the Phone app. Tap "Recents" at the bottom of your screen to see a list of your call logs. Please note that iPhones only show you the most recent 100 calls, however, more call logs are actually stored on the iPhone.
How to find Call Logs on your phone. To access your call history (i.e. a list of all of your call logs on your device), simply open your device's phone app which looks like a telephone and tap Log or Recents. You'll see a list of all incoming, outgoing calls and missed calls.
It is not possible to extract the call log programmatically.
First of all Apple officially does not expose any public API to access the call log. That means you can hack all you want to access the call log(Using private API's) but when submitting your app to Apple by sure it will be rejected.
Regarding the app you have mentioned(quickRemainder)
It gets the call log using a cvs file or a text file. It is not taking the info via device calllog db.
Extract from their app description.
You can import text or cvs files containing phone calls into this app.
TrueCaller does not get the call log they just use the app to search the contacts and update the contacts with info they got. They are not reading the callogs
Update: Apple has introduced framework called Callkit. Though you cannot access all the call log, you can have some control over calls like
Identifying incoming calls
Blocking calls etc
https://developer.apple.com/reference/callkit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With