【发布时间】:2013-05-30 20:14:01
【问题描述】:
我正在使用 PushSharp v2.0.4。我有一个推送通知服务(即 Windows 服务),每分钟发送一次通知。服务的负载非常小。每次运行我最多会发送四个通知。
当我的服务启动时,它可以正常运行大约 2 小时,然后我开始看到以下消息:
2013-06-04 07:59:01.0857|Error|Failure: PushSharp.Apple.ApplePushService ->
The maximum number of Send attempts to send the notification was reached! -> {"aps":{"badge":2}}
一旦出现此消息,PushSharp 似乎无法轻松通过它。在我重新启动服务之前,我会继续看到此消息。
我应该提到,在发生此错误时,我确实看到了一些随机发送的消息。例如:
2013-06-04 07:54:04.3982|Info|Sent: PushSharp.Apple.ApplePushService -> {"aps":{"badge":2}}
我正在使用默认配置运行 PushSharp。
对导致失败的原因有什么想法吗?
【问题讨论】:
-
您找到解决方案了吗?在发送 4-5 个 Pns 后,我似乎遇到了同样的问题,但我遇到了同样的故障。如果您有任何解决方案,请分享。
-
这通常是证书问题。您可以从错误日志中发布错误的完整堆栈跟踪吗?
标签: c# .net apple-push-notifications pushsharp