Questions tagged [cncontainer]

CNContainer is a thread-safe class that defines an immutable object that represents a container. It is part of the Swift and Objective-C API Framework for iOS, macOS, and watchOS.

CNContainer is a thread-safe class that defines an immutable object that represents a container. It is part of the Swift and Objective-C API Framework for iOS, macOS, and watchOS to access the user's contacts and format and localize contact information.

5 questions
1
vote
1 answer

How do apps like Skype show caller IDs in the native iOS recent calls list when a user isn't a contact in Swift?

I've noticed that many apps like Skype, Slack, Telegram etc, are able to show the ID of contacts saved within those apps in my native iOS recent calls list as if they are existing contacts. Here's a great example I found in a Google search: I…
LondonGuy
  • 10,778
  • 11
  • 79
  • 151
0
votes
1 answer

How do I get access to the externalIdentifier of a CNContainer object in iOS using Swift with Xcode?

How do I get access to the externalIdentifier of a CNContainer object? externalIdentifier is not an instance property of the CNContainer object. I printed to the debug window the description property of a CNContainer object. I show that below, with…
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

Why can't I retrieve the groups from the default container of Apple iOS Contacts Framework?

I have an iOS app that accesses the default container of the contact store and retrieves the groups within that container. After I signed out of my iPhone 8 device that the app is installed in, and then signed in with another account. Then signed…
daniel
  • 1,446
  • 3
  • 29
  • 65
0
votes
0 answers

Swift Programmatically Add a Local Contact Container

Is there any way to add a contact container to swift? I've looked over CNContainer, but can't seem to find a way. If there isn't a way to do that, does anyone know how to manually add a local container to a device?
steventnorris
  • 5,656
  • 23
  • 93
  • 174