我在PushKit VoIP通知上发现了一些与Azure通知中心相关的帖子:
Does GCM works with iOS PushKit framework?
我没有正式确认支持,我通过在我的通知集线器上使用相同的APN HTTP / 2配置来尝试自己,您可以将其用于APN通知或PushKit VoIP通知,但在注册到通知集线器时始终会收到无效令牌。
是否有人使用Azure通知中心进行此工作?是否有支持?
如果您将身份验证模式证书与VoIP服务证书一起使用似乎得到支持,但如果您对APNS使用基于令牌的(HTTP / 2)身份验证的身份验证模式令牌则不支持。
因此,为了使这项工作使用VoIP服务证书和Apple Notification Hub配置,请使用此VoIP证书设置身份验证模式证书。
我用认证模式和VoIP证书测试,但PushKit委托方法是
pushRegistry(_ registry:PKPushRegistry,didReceiveIncomingPushWith ....
没被触发。
触发了此方法:
application(_ application:UIApplication,didReceiveRemoteNotification