简体   繁体   English

APNS:在Windows Server上不起作用

[英]APNS: Does not work on Windows Server

I am trying to setup apple push notification using C#. 我正在尝试使用C#设置苹果推送通知。 I am able to test and get everything working on my laptop (dev machine). 我能够测试并在笔记本电脑(开发机)上正常工作。 When I move the published code to the windows server; 当我将发布的代码移到Windows服务器时; no errors were thrown and no notification was sent out. 没有引发任何错误,也没有发出通知。 I even set my application pool to local server. 我什至将我的应用程序池设置为本地服务器。

Any ideas what I am missing? 有什么想法我想念的吗?

You should make certificate for this production machine as well. 您也应该为此生产机器制作证书。 I believe you may have missed that step and did the same for your laptop. 我相信您可能已经错过了这一步骤,并且为笔记本电脑做了同样的事情。

Consider this link to review your steps one more time. 考虑使用此链接可以再次查看您的步骤。

Thanks 谢谢

I ended up creating a work around for this. 我最终为此创建了一个解决方案。 I never got it to work from an asp.net page. 我从asp.net页面上无法正常工作。 What I did is have my asp.net page insert a record in a queue table. 我所做的是让我的asp.net页在队列表中插入一条记录。 I then also created an console app that is call every 5 seconds to look in the queue table and perform a push notification. 然后,我还创建了一个控制台应用程序,该应用程序每5秒调用一次以查看队列表并执行推送通知。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 进程在Windows Server上不起作用 - Process does not work on windows server Windows Azure中的APNS - APNS in windows azure 清单中的requestExecutionLevel在Windows Server 2003上无法正常工作 - requestedExecutionLevel in manifest does not work properly on windows server 2003 通用搜索 Acumatica 不适用于 Windows 服务器上的点符号 - Universal search Acumatica does not work with dot symbol on the Windows server 在生产环境中基于APNS令牌的信任时发生异常(Windows Server 2012r2) - Exception when apns token based trust in a production environment (windows server 2012r2) uiCulture在服务器上不起作用 - uiCulture does not work on server Windows Phone 7上的绑定不起作用 - Binding on Windows Phone 7 does not work 内存如何在Windows中运行? - How does memory work in Windows? 为什么ASP.NET Windows身份验证在我的测试服务器上无法正常工作? - Why does ASP.NET Windows Authentication work incorrectly on my test server? Azure 认知语音 TTS API 不适用于 Windows 8、8.1、服务器 2012、服务器 2012R2 自 - Azure Cognitive Speech TTS API does not work on Windows 8, 8.1, Server 2012, Server 2012R2 since 2022-01
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM