PushKit not working in Xcode 9 beta 5 build

My app uses PushKit. When I create a build with Xcode 9 beta 5 PushKit is not working anymore, neither on a iOS 10 nor on a iOS 11 device. The didUpdatePushCredentials and didReceiveIncomingPushWithPayload methods never get called. Also the VoIP setting in Xcode "Capabilities", "Background Modes" is gone. Is this a known beta 5 issue or do I have to enable it elsewhere?


I also get this message, so I think PushKit should be working in order to have an alternative to the setKeepAliveTimeout method: The UIApplication method -[UIApplication setKeepAliveTimeout:handler:] is deprecated and no longer supported. Please use PushKit for VoIP applications instead of calling this method

Still the same in iOS 11 Beta 9 - or am I missing something? Where's the "VoIP Background Mode" setting in Xcode 9?

Same here. Is there any update on this?

Same here...


For the didReceiveIncomingPushWith I can read it's deprecated but my pushCredentials is never called:


@available(iOS, introduced: 8.0, deprecated: 11.0)
    optional public func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, for type: PKPushType)
@available(iOS 11.0, *)
    optional public func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, for type: PKPushType, completion: @escaping () -> Swift.Void)


BUT, if I add the VoIP key into the Info.plist it's working. It's very nasty but it does the trick (pushCredentials is not called on simulator):


<key>UIBackgroundModes</key>
  <array>
  <string>audio</string>
  <string>voip</string>
  </array>
PushKit not working in Xcode 9 beta 5 build
 
 
Q