Call Directory Extension programmatically enabled problem

Muharrem 1 Reputation point
2021-06-16T11:43:18.637+00:00

This code is not working.

var callDirManager = CXCallDirectoryManager.SharedInstance;
                callDirManager.ReloadExtension(CALL_DIRECTORY_EXTENSION_ID, error =>
                {
                    if (error == null)
                    {
                        Console.WriteLine("ReloadExtension success");
                    }
                    else
                    {
                        Console.WriteLine("ReloadExtension error = " + error.LocalizedDescription);
                    }
                });

Each time;
The operation couldn't be completed. (com.apple.CallKit.error.calldirectorymanager error 6.)
I get an error.
I wrote a log in the CallDirectoryHandler class from the very beginning. But none of them appear in DeviceLog.
It works when I activate it from the Extension i Settings > Phone > Call Blocking & identification menu.

Developer technologies .NET Xamarin
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.