"MyApp John Saying 'Hello, friend.'"
Looking for John...
I am trying to resolve contacts for an INSendMessageIntent (basically, decipher a recipient from intent.recipients (a list of INPerson objects) provided when the following function is called:
).
I was wondering where to RELIABLY retrieve the user's spoken String within each INPerson object (independent of whether it's in the user's contacts or not).
I can't tell based on the Documentation or any articles I've researched which of the variables within an INPerson object will be filled each time for me to process.
The relevant items of an INPerson object are below:
personHandle, nameComponents ,displayName ,contactIdentifier, customIdentifier
Any ideas?
Looking for John...
I am trying to resolve contacts for an INSendMessageIntent (basically, decipher a recipient from intent.recipients (a list of INPerson objects) provided when the following function is called:
Code Block func resolveRecipients(for intent: INSendMessageIntent, with completion: @escaping ([INSendMessageRecipientResolutionResult]) -> Void)
).
I was wondering where to RELIABLY retrieve the user's spoken String within each INPerson object (independent of whether it's in the user's contacts or not).
I can't tell based on the Documentation or any articles I've researched which of the variables within an INPerson object will be filled each time for me to process.
The relevant items of an INPerson object are below:
personHandle, nameComponents ,displayName ,contactIdentifier, customIdentifier
Any ideas?