Questions tagged [ios-contacts]
19 questions
40
votes
2 answers
How to integrate app with iOS Contacts app?
I'm trying to get a messaging app integrated with the iOS Contacts app, so that users can initiate messages via the app directly from Contacts. This was covered in WWDC 2016 session 240 but apparently some details were omitted.
Following the WWDC…

Tom Harrington
- 69,312
- 10
- 146
- 170
9
votes
1 answer
How to convert CNContact to CNMutableContact?
I need to get contact, change it, and store back.
CNContactStore().unifiedContacts gives me CNContact instance, but CNSaveRequest().update requires CNMutableContact.
How to convert CNContact to CNMutableContact?

Igor
- 12,165
- 4
- 57
- 73
2
votes
1 answer
What does CNError.Code.communicationError error mean?
I can see this error on some users (very very little percent) when trying to load contacts. The error is standard CNError, but I can not find information about the reason of its occuring. May be somebody can help?

Marina
- 1,177
- 4
- 14
- 27
1
vote
0 answers
How to get postal address id from a contact iOS swift 5
i'm fetching contacts from iphone with complete contact detail i have recieved address and address label store with it but i want id of that address.
for postalAddress in contact.postalAddresses {
let title: String = …
1
vote
0 answers
CNContactPickerViewController contact list offset issue
Description: If I set "[[UIScrollView appearance] setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];" somewhere else in my app, the first two items in CNContactPicerViewController will be coverd and cannot be touched.…

JeffRen
- 11
- 1
1
vote
0 answers
Create contact in a group
I want to create a functionality, wherein some contacts will be saved in user's phone.
Now I know using Contact framework, I can save the contacts.
This is what I have been using.
func saveContacts(dict: [[String : String]]) {
for…

SUMIT NIHALANI
- 387
- 1
- 10
1
vote
1 answer
How we show the International Phone Numbers format like as Contacts number format?
I like to show the international phone number on app screen like the format are used by Apple Contacts app(iPhone 6).
For Example: +1 (xxx) xxx-xxxx, +91 xxxxx xxxxx, +61 (0) x xxxx xxxx, xxxxx xxxxx.
Can we deploy the standard Apple display of…

Sumitava Datta
- 137
- 1
- 11
0
votes
0 answers
How would I use Interface Builder with CNContactViewController in iOS using Xcode and Swift?
I was able to discover that CNContactViewController is able to be subclassed. I would like to use Interface Builder so that I could show a standard back button with the standard partial arrow or less than sign looking symbol that indicates the view…

daniel
- 1,446
- 3
- 29
- 65
0
votes
0 answers
Why does a change in contact store trigger more than one notification from notification center in iOS?
Anyone know why a change in the contact store triggers more than one notification to a notification center observer?
I did a test project to see how many times CNContactStoreDidChange notification occurs when I make a simple change to contact…

daniel
- 1,446
- 3
- 29
- 65
0
votes
2 answers
How to determine whether contacts in iOS are duplicates or not?
What criteria does Apple use to determine whether a vCard sent for example as an email attachment has a duplicate? I would think there has to be more in common between the duplicates than just the given name and the family name? Does Apple say…

daniel
- 1,446
- 3
- 29
- 65
0
votes
0 answers
How would I be able to uniquely identify a contact in a contact store in a iOS device?
I need someway to uniquely identify a contact in contact store even if the contact is changed.
Is there a way to put code in iOS that is always watching in the background for the contact store to change? That way I can track a contact that I…

daniel
- 1,446
- 3
- 29
- 65
0
votes
1 answer
How do I set the default contacts container for my iOS app to the contacts container that is saved in iCloud?
I am writing an iOS app using Swift and Xcode 13.1. I am using the Contacts Framework, and I read that each app has a default contacts container, and the default container in an app can be different than the default container in another app, and…

daniel
- 1,446
- 3
- 29
- 65
0
votes
0 answers
How to check if a contact is google contact or not in ios?
I am working on an app where I need to check if a contact is google contact or not for IOS.
After reading Contacts Framework what I understood was a contact can belong to multiple containers. Basically, containers are the server accounts where…

folan
- 215
- 1
- 8
0
votes
1 answer
Change view once contact permission is granted
At the moment, I am able to successfully ask the user for their permission to access their Contact information. I am handling this through a switch statement like so:
func requestContactPermissions() {
let store = CNContactStore()
var…

Bonteq
- 777
- 7
- 24
0
votes
1 answer
React Native: Add custom application functionality to Native Contacts Application
I have tried doing some research around this, but seem to keep getting Whatsapp FAQ's.
When I install Whatsapp on my Android device, then
Go to my Android contacts list.
Select a User.
I get a Whatsapp Badge on contacts, and there is call or…

sqwale
- 554
- 3
- 24