0 Replies
      Latest reply on Oct 4, 2019 4:32 AM by jbrooksga
      jbrooksga Level 1 Level 1 (0 points)

        Hello,

         

        I am attempting to utilize the CallDirectory Extension to add a phone number to a block list.

         

        This is the class:

         

        class CallDirectoryHandler: CXCallDirectoryProvider {

         

            override func beginRequest(with context: CXCallDirectoryExtensionContext) {

                context.delegate = self

                    

                context.addBlockingEntry(withNextSequentialPhoneNumber: 1_555_555_5555)

            

                context.completeRequest()

         

        Just to verify things I have added this to my code:

         

        CXCallDirectoryManager.sharedInstance.reloadExtension(withIdentifier: "<myappname>") { (error) i

                    print("reloaded extension CallDirectory", error as Any)

                   }

         

        There are no error messages from the extension being loaded above.

         

        In iOS 13 the inbound calls are not being blocked, however on iOS 12 this works correctly.