How to know what number is a user calls?

I’m looking for ideas here. Is there anyway I can access the record of which calls a user has made. I would like to figure out a way to know which numbers a user uses most. I want to be able to set a default number for each contact in my app that the user uses. Is there so way I can determine what default phone number user would normally call for a contact?

AFAIK, answer is no. That would be a real privacy concern if an app (other than phone app) could do that in my back.

Maybe it is possible to export the log and then read the file ?

You can export the logs when connected to the Mac (which is trusted by the iPhone).

https://imazing.com/guides/how-to-transfer-call-history-call-logs-from-iphone-to-a-mac-or-pc-computer

How to know what number is a user calls?
 
 
Q