在iOS 9+上永远不会调用Apple PushKit didUpdatePushCredentials [英] Apple PushKit didUpdatePushCredentials is never called on iOS 9+

查看:710
本文介绍了在iOS 9+上永远不会调用Apple PushKit didUpdatePushCredentials的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为iPhone开发VoIP应用程序。为了接听电话,Apple开发了PushKit,因此开发人员可以使用APNS发送VoIP通知。

I am developing a VoIP app for iPhone. To receive calls, Apple developed PushKit so developers can send VoIP notifications using APNS.

在iOS 8上一切正常。当我更新到iOS 9时, PKRegistryDelegate 注册后不会触发方法 didUpdatePushCredentials

Everything was working fine on iOS 8. When I updated to iOS 9, the PKRegistryDelegate does not fire the method didUpdatePushCredentials after registration.

任何想法/建议?

推荐答案

从Project-> Capabilities启用推送通知标志解决了我的问题。这很奇怪,因为它早先没有它。这个回复可能很晚,但希望这有助于某人。我很难搞清楚这一点。

Enabling the "Push notification" flag from Project->Capabilities solved my issue. It's strange because it was working without it earlier. This reply maybe late but hopefully this helps someone. I had a hard time figuring this out.

这篇关于在iOS 9+上永远不会调用Apple PushKit didUpdatePushCredentials的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆