iOS 13 not getting VoIP Push Notifications in background

前端 未结 4 878
眼角桃花
眼角桃花 2020-12-31 16:50

I\'m developing a softphone in Swift using CallKit and PushKit. Before iOS 13, VoIP notifications were working perfectly. But after the iOS 13 update, my app isn\'t getting

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-31 17:37

    If you build the app with Xcode 11 (and iOS 13 SDK) PushKit won't work any longer if you fail to report to CallKit.

    On iOS 13.0 and later, if you fail to report a call to CallKit, the system will terminate your app. Repeatedly failing to report calls may cause the system to stop delivering any more VoIP push notifications to your app. If you want to initiate a VoIP call without using CallKit, register for push notifications using the UserNotifications framework instead of PushKit.

    https://developer.apple.com/documentation/pushkit/pkpushregistrydelegate/2875784-pushregistry

提交回复
热议问题