CallKit and CallDirectoryHandler extension limits

Can you please explain how many numbers can be written to one CallDirectoryHandler? I've tried to write to test app - and I managed to write 1 999 999 numbers.

To my existing app I managed to write only 1 000 000 numbers, but they were all with different length. If the phone numbers are the same length (11 symbols) - I managed to write 1 500 000 numbers.

What does it depends on?

In the past I've managed to write several million numbers.

An issue I faced at the time was that loading all the numbers exceeded the memory limit in the extension.

It was necessary to add them in smaller batches.

CallKit and CallDirectoryHandler extension limits
 
 
Q