【问题标题】:Maximum number of Send Attempts最大发送尝试次数
【发布时间】: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


【解决方案1】:

我们遇到了类似的问题。问题最终是在导出 p12 时,我们多选导出公共和私有来生成 p12。仅导出公共时,p12 的大小为 3217 字节。 3217 字节文件有效。如果您的 p12 是 6140 字节,则需要重新生成它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-10-06
    • 1970-01-01
    • 2018-09-22
    • 2017-09-22
    • 2014-02-26
    • 2014-12-08
    • 2020-11-05
    相关资源
    最近更新 更多