getContacts()
Retrieves all contacts from the iMessage server.Returns
Array of contact objects from the server.
Example
getContactCard()
Retrieves a contact card from iCloud for a specific address.Parameters
The email address or phone number to look up in iCloud contacts.
Returns
Contact card data from iCloud containing the contact’s information.
Example
This method queries iCloud directly, so the address must be associated with an iCloud account.
Use cases
- Look up contact details before sending a message
- Verify contact information exists in iCloud
- Retrieve contact metadata for display purposes