Call Directory should have better APIs for updating the identification database

Originator:arshadasif0312
Number:rdar://31342833 Date Originated:30 Mar 2017
Status:Duplicate/26827786/Open Resolved:
Product:iOS + SDK Product Version:
Classification:Enhancement Reproducible:Always
 
Adding support for call blocking and indentification requires developers to send a sorted array of name and phone number.

There should be a better API to send the delta since the last update, as frequent recreation of the whole name, number array is an expensive operation, and leads to a very high average energy usage of the app.

For our usecase, we have to update an array of 10000 names with their numbers, everytime we sync our data.

Steps to Reproduce:
1. Install an app with call identification support
2. Turn on Call Identification
3. Sync the data from server if applicable

Expected Results:
CallKit API's should provide helper methods for adding/updating/deleting records from the call kit database.
Specially in any order of phone number and name.

Actual Results:
We have to fetch all details from DB, sort it and then call addIdentificationEntry for every name and number pair.

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!