localizedCallerName on CXCallUpdate not respecting customised value

Originator:vaibhao.mahore
Number:rdar://34973537 Date Originated:13 2017, 2:24 PM
Status:Open Resolved:
Product:iOS Product Version:iOS 10+
Classification:CallKit Reproducible:Always
 
Area:
CallKit

Summary:
CallKit UI doesn't display customised name set by application in property "localizedCallerName" (of CXCallUpdate). Application overrides  localizedCallerName property with customised value but it doesn't respect customised value.

Steps to Reproduce:
Requirements: 
AddressBook has a contact for caller party (with local name, email and phone number ). Application also maintains contacts (called as PPM contact) fetched from network. So there is a PPM contact with LDAP name and with email and phone number matching to a contact from AddressBook.

Steps:
Application receives an incoming VoIP call and app displays CallKit UI. Check out caller party name on CallKit UI. 

Expected Results:
Application retrieves best contact match for caller party using contacts (contacts from AddressBook + contacts fetched from network) to display matched contact's  name on CallKit UI. Network contacts gets priority over contacts from AddressBook. Therefore, application overrides "localizedCallerName" property to show best matched contact name on CallKit UI. In this case, best matched contact would be network contact and its display name should be displayed on CallKit UI when application sets customised value in localizedCallerName property.

Actual Results:
CallKit shows local name from AddressBook. It doesn't respect customised value set by application. 

Issue doesn't happen when application doesn't have contact in AddressBook.  CallKit displays customised name when application overrides localizedCallerName property on CXCallUpdate. 

Version/Build:
Tried on iOS versions 10.2.1, 11.0 

Configuration:
iPhone6S plus

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!