We know that contacts in iOS can be synced from Google
, iCloud
and Phone
. Well, we can fetch a bunch of Contacts using Contacts.framework
, but I want to know which account it belongs to.
I mean, I need to differentiate Email and Phone synced contacts. Is there any way to do so?
I am using contact framework
. I am getting identifier by using CNContainer
, but how to get account name in which contacts are stored and also how fetch that contact’s from that account?
Can you please try fetching All container's and then you can Group those contacts according to the container name