IOS Apple APNS 消息推送 C#
各位大神,我正在用C# 做的一个关于苹果的消息推送,我用了一个老外源代码中的两个专案,老外的源码我就不贴出来了,因为我看到网上基本上写消息推送都用的是他写的那个源码。JdSoft.Apple.Apns.Notifications和JdSoft.Apple.Apns.Notifications.Test,
只在JdSoft.Apple.Apns.Notifications.Test里面改了一下代码,把P12档和token还有密码改成了我自己这边的,然后跑起来试试。(另外,我要声明的是我电脑的防火墙都关掉了。)
但是我的apple一直收不到讯息。程序console .Write如下
Notification Queued!
Sleeping 15000 milliseconds before next Notification...
Connected...
Notification Success:{"aps":{alert":"Testing 1...""badge":1,"sound":"default"}}
Notification Queued!
Sleeping 15000 milliseconds before next Notification...
Error:无法将数据写入传输连接:您的主机中的软件中止了一个已机建立的连接。。
Connection...
Connected...
Notification Success:{"aps":{"alert":"Testing 2...","badge":2,"sound":default"}}
Notification Queued!
Error:无法将数据写入传输连接:您的主机中的软件中止了一个已建立的连接。。
Cleaning Up...
Cnection...
Notification Success:{"aps":{alert":"testing 3...","badge":3,"sound":"default"}}
done!
Press enter to exit...
不知道错误出在哪里了。请指教,谢谢。
客服端手机一直没有收到信息。