Export to GitHub

apns-sharp - issue #26

Why is it that Only 1 Message Goes through?


Posted on Apr 8, 2010 by Happy Hippo

What steps will reproduce the problem? 1.Using a Sandbox. 2.Valid Device Token. 3.Integrated 1.0.3

What is the expected output? What do you see instead? Iam expecting all of my message to go through, But only 1 or 2 goes through?

What version of the product are you using? On what operating system? 1.0.3, Windows 2003

Please provide any additional information below. I am writing a C# Webservice method and got the 1.0.2 referenced to send notifications to valid device toekn.

Comment #1

Posted on Apr 8, 2010 by Happy Hippo

Correction: Please provide any additional information below. I am writing a C# Webservice method and got the 1.0.2 referenced to send notifications to valid device toekn.

Its 1.0.3 referenced!

Comment #2

Posted on Apr 8, 2010 by Happy Lion

Going to need more information than this. have you tried stepping through the debugger and seeing if 1) all your messages make it to the queue, and 2) all of them come off the queue and there is an attempt to send each?

Comment #3

Posted on Apr 9, 2010 by Happy Hippo

this morning I went through the debugger and every try I do "apnsStream.Write (notification.ToBytes());" does get executed and the flag "sent=true" is set.

As i said only the first attempt in the morning yielded me a message on my iPhone. Another interesting thing though is I published my Webservice onto a different Box with Windows 2003, there again i see the same issue. Is there anything specific that I need to relook at?

Let me know, -Unni

Comment #4

Posted on Apr 19, 2010 by Happy Lion

Perhaps you should examine the result of the notification.ToBytes() and see if it complies with the specifications put out by apple.

Also, are you sending the same notification twice in a row fairly close together one after another? It's possible you are getting both of them, but the first one gets overwritten by the second. Apple only keeps 1 notification per app per device token in queue. So if apple hasn't sent the first notification to the device before you send apple the second notification, the first one gets overwritten by the second.

Comment #5

Posted on May 20, 2010 by Happy Lion

Need more info

Status: WontFix

Labels:
Type-Defect Priority-Medium