Maximum number of Send Attempts
Asked Answered
R

1

25

I am using PushSharp v2.0.4. I have a push notification service (i.e., Windows Service) that sends out notifications every minute. The load on the service is quite small. At most, I will send four notification per run.

When my service starts, it runs fine for about 2hrs before I start seeing the following message:

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}}

Once this message appears, it seems like PushSharp is not able to get past it very easily. I continue to see this message until I restart my service.

I should mention that while this error is occurring, I do see some random Sent messages go through. For example:

2013-06-04 07:54:04.3982|Info|Sent: PushSharp.Apple.ApplePushService -> {"aps":{"badge":2}}

I am running PushSharp with its default configuration.

Any thoughts on what's causing the failures?

Riancho answered 4/6, 2013 at 12:22 Comment(2)
Did you find any solution for this? It seems i have the same problem after 4-5 Pns are sent i get the same failure . Pls share if u have any solution.Overdevelop
This is usually a certificate issue. Can you post a full stack trace of the error from the error log?Region
M
1

We had a similar issue. The issue ended up being that when exporting the p12 we multi selected to export public and private to generate the p12. When only exporting the public, the size of the p12 was 3217 bytes. The 3217 byte file worked. If your p12 is 6140 bytes you'll need to regenerate it.

Manara answered 15/5, 2015 at 15:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.