Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

After upgrading my app to Xcode8/Swift 3, I no longer receive callbacks from the PKPushRegistryDelegate .

I have verified all steps in Apple´s Voice Over IP (VoIP) Best Practices .

My device logs the following that might be related:

callservicesd[92] : [WARN] Ignoring voipRegister request because either no bundleIdentifier could be determined (0) or no environment could be determined (1)

My AppDelegate:

var voipRegistry: PKPushRegistry!
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {
  voipRegistry = PKPushRegistry(queue: DispatchQueue.main)    
  voipRegistry.delegate = self    
  voipRegistry.desiredPushTypes = Set([.voIP])    
extension AppDelegate: PKPushRegistryDelegate {    
    func pushRegistry(_ registry: PKPushRegistry, didInvalidatePushTokenForType type: PKPushType) {        
        print("didInvalidatePushTokenForType")        
    func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, forType type: PKPushType) {        
        print("Incoming voip notfication: \(payload.dictionaryPayload)")
    func pushRegistry(_ registry: PKPushRegistry, didUpdate credentials: PKPushCredentials, forType type: PKPushType) {               
        print("voip token: \(credentials.token)")        
        

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.