[英]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? 有什么想法我想念的吗?
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.