Access Recent Call List from native app in Swift App
Asked Answered
P

1

5

I want to access the Recent Call list in My Swift app and matched the number that I have in My Code.

How can I do that?

Pravit answered 4/1, 2016 at 12:40 Comment(0)
M
8

No it cannot be done in a iOS app.

Technical Reason:

Recent call lists informations are stored in a sqlite db file deep inside the file structure and Apple prevents any access to that file outside your app sandbox.

You can fetch the contacts and its information by Contacts or Addressbook framework but not its call log related information.

Marilumarilyn answered 4/1, 2016 at 12:42 Comment(2)
iPrabu, Thanks For sharing...So Can we add the matching number from address book?Pravit
You can definitely read all the contacts and you can check whether the contact has the phone number in your code. I hope this answers your questionMarilumarilyn

© 2022 - 2024 — McMap. All rights reserved.