Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure推送通知中心是否支持iOS推送套件VoIP推送通知?_Ios_Azure_Apple Push Notifications_Azure Notificationhub_Pushkit - Fatal编程技术网

Azure推送通知中心是否支持iOS推送套件VoIP推送通知?

Azure推送通知中心是否支持iOS推送套件VoIP推送通知?,ios,azure,apple-push-notifications,azure-notificationhub,pushkit,Ios,Azure,Apple Push Notifications,Azure Notificationhub,Pushkit,我在PushKit VoIP通知上发现了一些与Azure通知中心支持相关的帖子: 目前还并没有官方的支持确认,我确实尝试过在我的通知中心上使用相同的APN HTTP/2配置,您可以将其用于APN通知或PushKit VoIP通知,但在注册到通知中心时总是得到无效的令牌 有人使用Azure通知中心实现了这一点吗?是否支持此功能?如果对VoIP服务证书使用身份验证模式证书,则支持此功能,但如果对APN使用基于令牌(HTTP/2)身份验证的身份验证模式令牌,则不支持此功能 因此,要获得这项工作,

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

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


有人使用Azure通知中心实现了这一点吗?是否支持此功能?

如果对VoIP服务证书使用身份验证模式证书,则支持此功能,但如果对APN使用基于令牌(HTTP/2)身份验证的身份验证模式令牌,则不支持此功能


因此,要获得这项工作,请使用VoIP服务证书,并在Apple Notification Hub配置中使用此VoIP证书设置身份验证模式证书。

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

pushRegistry(uRegistry:PKPushRegistry, 我收到了

没有触发

触发此方法:

应用程序(应用程序:UIApplication,DidReceivereMotentification)


它开始工作了,但您必须:

  • 在HTTP/2中使用令牌身份验证模式
  • 将.voip后缀添加到Bundle Id
  • 在发送通知时,指定
    apns推送类型
    voip
    。(因iOS13而添加)

    var headers=newdictionary();
    添加(“apns推送类型”、“voip”);
    var通知=新模板通知(参数);
    通知头=头;
    等待hub.SendNotificationAsync(通知);
    

您好,我正在我的应用程序中使用VOIP通知,服务器端使用Azure notification hub来触发通知。当hub保持在沙箱模式时,它工作正常。但是当我将hub设置为生产模式时,不会收到通知。您能帮我吗?我是否需要将非Azure内容的.VOIP添加到我的应用程序中bundle id?id那么我应该在哪里添加它?当在apple developer上或在本地的应用程序配置中创建证书时?当你调用apple server API发送voip推送时,我认为只有在那时
    var headers = new Dictionary<string, string>();
    headers.Add("apns-push-type", "voip");
    var notification = new TemplateNotification(parameters);
    notification.Headers = headers;
    await hub.SendNotificationAsync(notification);