我无法使用此功能获得 voip 令牌
func registerVoipNotifications() {
let mainQueue = dispatch_get_main_queue()
let voipRegistry: PKPushRegistry = PKPushRegistry(queue: mainQueue)
voipRegistry.delegate = self
voipRegistry.desiredPushTypes = [PKPushTypeVoIP]
}
和
func pushRegistry(registry: PKPushRegistry,
didUpdatePushCredentials credentials: PKPushCredentials,
forType type: String) {
//print out the VoIP token. We will use this to test the nofications.
let voipToken = credentials.token
self.getSipSetting("\(voipToken)")
}
但我无法输入“didUpdatePushCredentials”。
使用ios9,我没有这个问题。
你有想法吗 ?