I have implemented call kit in my voip app in which i generate the call logs for incoming or outgoing calls (visible on phone recent tab). When i click on call logs it will
Call information is encapsulated in the INPerson object, which can be parsed from INInteraction objects.
When providing contacts to SiriKit, any INInteraction objects delivered to other apps includes the information contained in INPerson objects. Do not include any information that you are not willing to share with other apps.
You have to get the interaction and intent object from the NSActivity object.
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
if let intent = activity.interaction?.intent as? INStartCallIntent,
let contacts = intent.contacts,
let value = contacts.first?.personHandle?.value {
let contactHandle name = value
// This is the contact handle, now you can add your business logic.
}
return true
}