Server 2008上的推送Notfication无法正常工作 [英] Push Notfication on Server 2008 is not working

查看:100
本文介绍了Server 2008上的推送Notfication无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

i能够从我的本地主机发送推送通知,但我无法从我的演示服务器向iphone设备发送推送通知。

我的演示服务器是windows server 2008.

这是我的代码:

Hi All,
i am able to send push notification from my local-host but i am not able to send push notification from my demo server to iphone device.
my demo server is windows server 2008.
here is my code:

 using (TcpClient client = new TcpClient())
            {
              
string appleurl="gateway.push.apple.com";
string pushpath = @"D:\App_Data\AppPush.p12";
  client.Connect(appleurl, 2195);
 X509Certificate clientCertificate = new X509Certificate(pushpath);
                    X509CertificateCollection clientCertificateCollection = new X509CertificateCollection(new X509Certificate[1] { clientCertificate });

                    SslStream sslStream = new SslStream(client.GetStream(), false, new RemoteCertificateValidationCallback(ValidateServerCertificate), null);

                    try
                    {
                        sslStream.AuthenticateAsClient(appleurl, clientCertificateCollection, SslProtocols.Default, false);
                    }
}





并且在IIS或MMC中注册我们的证书是否需要任何设置。

请告诉我。



and is there any setting is required to register our certificate in IIS or MMC.
please let me know.

推荐答案

嗨@All现在问题通过谷歌搜索来解决。



只需要添加带有Apple Production IOS证书的IIS_IUSRS。现在它也在Demo / Development Server上工作。

谢谢:-)

JMD
Hi @All now problem is solved by googling it.

only need to add "IIS_IUSRS" with Apple Production IOS certificate.now it is also working on Demo/Development Server.
Thanks :-)
JMD


请用Apple Production IOS证书添加IIS_IUSRS来指定你的意思?
Please specify what do you mean by add "IIS_IUSRS" with Apple Production IOS certificate" ?


这篇关于Server 2008上的推送Notfication无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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