Hi, can you please describe (code example) how you did it?
With my code:
let cdm = CXCallDirectoryManager.init();
cdm.getEnabledStatusForExtension(withIdentifier: "com.urnoftheapp.Sperrliste", completionHandler: {
(status:CXCallDirectoryManager.EnabledStatus, e:Error?) -> Void in
if (status == CXCallDirectoryManager.EnabledStatus.enabled)
{
// do something
}
print(status)
print(e)
})
I get the following error:
Optional(Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.CallKit.CallDirectory was invalidated from this process." UserInfo={NSDebugDescription=The connection to service named com.apple.CallKit.CallDirectory was invalidated from this process.})
com.urnoftheapp is placeholder for the URN of the App Bundle, which is the beginning of the URN of the Extension, which just added .Sperrliste
Thanks and Regards,
Emil