Instance Property


The identifier associated with a user record in the Contacts database.


var contactIdentifier: String? { get }


The identifier of the CNContact object associated with the user. The value of this property is specified automatically at initialization time and can’t be changed later.

If the user denied your app access to the Contacts database, this property is always nil. Not having access to the user’s Contacts can prevent an intent from including data related to contacts. For example, if the user tries to book a ride home, the intent may derive information about the user’s home from the Contacts database.

See Also

Getting Person-Related Identifiers

var customIdentifier: String?

The custom identification string that your app uses to identify the user.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software