localizedCallerName on CXCallUpdate not respecting customised value

Originator:vaibhao.mahore
Number:rdar://34973537 Date Originated:13 2017, 2:24 PM
Status:Closed 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

Working as intended

Apple intentionally prioritizes showing a user’s own Contact card info for a caller over the ‘localizedCallerName’ given by CallKit, if there is a Contact card, so this behaves correctly.

Hence apple has closed ticket as working as intended.

By vaibhao.mahore at Oct. 26, 2017, 7:08 a.m. (reply...)

Response from Apple Engineering team

Hi Vaibhao,

This is a courtesy email regarding Bug ID# 34973537.

Engineering has provided the following feedback regarding this issue:

We intentionally prioritize showing a user’s own Contact card info for a caller over the ‘localizedCallerName’ given by CallKit, if there is a Contact card, so this behaves correctly.

Thank you for your feedback. Engineering has determined that this issue behaves as intended.

We are now closing this bug report.

If you just have questions about the resolution, then please update your bug report with that information so we can respond.


IMPORTANT: PLEASE DO NOT REPLY TO THIS EMAIL!

When engineering requests additional information about a specific bug you filed, a purple circle with an exclamation point in it to the left of the bug's title will appear in the left column of the page. Please review your bug report, along with our response to it, and provide any relevant additional information.

When you update the report that requires your attention using the bug reporter website, the purple circle with an exclamation point will disappear and engineering will be notified about the new information you provided.

                             For a complete list of logging instructions visit:            
                 https://urldefense.proofpoint.com/v2/url?u=https-3A__developer.apple.com_bug-2Dreporting_profiles-2Dand-2Dlogs_&d=DwIFaQ&c=BFpWQw8bsuKpl1SgiZH64Q&r=_W78o6xRP6wIgUO9NyZc-KG6yo440QOkgespKncoJGI&m=vAsKZEJJqkoszOXc0ULfbrFvhTLqd2q3K0Jycb7gv2Q&s=fGSI2tMjyoazgXvbucqpgSy1d0qRtYZNB5wY8EeZ_jw&e=

                                                        Bug Reporter:

https://urldefense.proofpoint.com/v2/url?u=https-3A__bugreport.apple.com_&d=DwIFaQ&c=BFpWQw8bsuKpl1SgiZH64Q&r=_W78o6xRP6wIgUO9NyZc-KG6yo440QOkgespKncoJGI&m=vAsKZEJJqkoszOXc0ULfbrFvhTLqd2q3K0Jycb7gv2Q&s=thoFlHOePSAUEnoJAEKg3kazUJpxRzdKvRNFf3tJlns&e=

Thank you for your assistance in helping us discover and isolate bugs within our products.

Best Regards,

Apple Developer Support Worldwide Developer Relations


THE INFORMATION CONTAINED IN THIS MESSAGE IS UNDER NON-DISCLOSURE

By vaibhao.mahore at Oct. 26, 2017, 7:07 a.m. (reply...)

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!