2

我在 PushKit VoIP 通知上发现了一些与 Azure 通知中心支持相关的帖子:

https://social.msdn.microsoft.com/Forums/ie/en-US/afda14fe-1218-4ca1-a1ee-205ccd241d1a/support-for-apple-voip-pushkit-push-notifications?forum=notificationhubs

https://social.msdn.microsoft.com/Forums/azure/en-US/39b4e1cd-842f-4562-bab5-119d5f6175cd/send-ios-voip-pushes?forum=notificationhubs

GCM 是否适用于 iOS PushKit 框架?

没有官方确认支持,我确实尝试在我的通知中心上使用相同的 APN HTTP/2 配置,您可以将其用于 APN 通知或 PushKit VoIP 通知,但在注册到通知中心时总是得到无效的令牌。

有没有人使用 Azure 通知中心进行这项工作?是否对此有支持?

4

3 回答 3

2

如果您将身份验证模式证书与 VoIP 服务证书一起使用,则似乎受支持,但如果您将身份验证模式令牌与基于令牌的 (HTTP/2) 身份验证一起用于 APNS,则不支持。

因此,要使其正常工作,请使用 VoIP 服务证书并在 Apple Notification Hub 配置上使用此 VoIP 证书设置身份验证模式证书

于 2017-11-23T01:59:21.723 回答
1

它开始工作,但你必须:

  • 使用带有 HTTP/2 的令牌认证模式
  • 将 .voip 后缀添加到 Bundle Id
  • 发送通知时apns-push-type指定。voip(因iOS13而添加)

        var headers = new Dictionary<string, string>();
        headers.Add("apns-push-type", "voip");
        var notification = new TemplateNotification(parameters);
        notification.Headers = headers;
        await hub.SendNotificationAsync(notification);
    
于 2019-10-22T14:11:25.153 回答
0

我使用认证模式和 VoIP 证书进行测试,但 PushKit 委托方法是

pushRegistry(_registry: PKPushRegistry, didReceiveIncomingPushWith....

没有被触发。

触发了这个方法:

应用程序(_应用程序:UIApplication,didReceiveRemoteNotification

于 2018-09-14T14:16:18.120 回答