snnagar / apns-sharp

Automatically exported from code.google.com/p/apns-sharp
0 stars 0 forks source link

Why is it that Only 1 Message Goes through? #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by uknamboo...@gmail.com on 8 Apr 2010 at 5:44

GoogleCodeExporter commented 9 years ago
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!

Original comment by uknamboo...@gmail.com on 8 Apr 2010 at 5:47

GoogleCodeExporter commented 9 years ago
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?

Original comment by jond...@gmail.com on 8 Apr 2010 at 12:27

GoogleCodeExporter commented 9 years ago
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

Original comment by uknamboo...@gmail.com on 9 Apr 2010 at 9:15

GoogleCodeExporter commented 9 years ago
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.

Original comment by jond...@gmail.com on 19 Apr 2010 at 1:05

GoogleCodeExporter commented 9 years ago
Need more info

Original comment by jond...@gmail.com on 20 May 2010 at 2:42