HarunBahcel / apns-sharp

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

Nothing Comming Back from Feeback Server #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am not getting anything return from the feedback server.  

What steps will reproduce the problem?
1. Send push to a device token with no app installed on that device
2. Run Feeback test sample
3. Check for return 

What is the expected output? What do you see instead?

at this line

    //Get the first feedback
                recd = apnsStream.Read(buffer, 0, buffer.Length);

recd is still 0, doesn't looking like anything coming.  Looks to connect okay.

What version of the product are you using? On what operating system?
the lastest download with Windows Server 2003

Please provide any additional information below.

Original issue reported on code.google.com by mtun...@gmail.com on 17 Aug 2009 at 9:01

GoogleCodeExporter commented 8 years ago
I just run it again and noticed that I am getting this error

Position = 'apnsStream.Position' threw an exception of type
'System.NotSupportedException'

Original comment by mtun...@gmail.com on 17 Aug 2009 at 9:07

GoogleCodeExporter commented 8 years ago
If recd is 0 that means the server isn't sending any data and the connection 
should be 
closed.  As per apple's specifications, you won't get any response from the 
server if 
there is no feedback.  The server will close the connection.

Original comment by jond...@gmail.com on 27 Aug 2009 at 3:08

GoogleCodeExporter commented 8 years ago

Original comment by jond...@gmail.com on 22 Dec 2009 at 5:41

GoogleCodeExporter commented 8 years ago
Hello everybody. I've installed on my iPhone ad-hoc version, so it means 
distribution 
one. I've downloaded apns-shart library and tried to test push notifications on 
that. I 
have all necessary certificates. I've succeeded to push notifications using 
test 
notification project and with this everything is fine. My problem is: when I've 
tried 
to use test feedback project it fetched needed device tokens, but when I've 
tried to 
launch it second time, it return 0 bytes. What ca I do to fix the problem.

Original comment by arturkyu...@gmail.com on 1 May 2010 at 8:40

GoogleCodeExporter commented 8 years ago
0 bytes means that there was nothing from the feedback server.  Often the 
feedback server will not send out a 
UDID until you've tried sending it notifications a few times after that UDID 
does not want them anymore... 

Original comment by jond...@gmail.com on 2 May 2010 at 8:05

GoogleCodeExporter commented 8 years ago
Hi all! 

I had same problem, to fix it add this try-catch sentence at the end of "Run()" 
method in the file FeedbackService.cs

try {
   //Clear our array to reuse it
   Array.Clear(buffer, 0, buffer.Length);

   //Read the next feedback
   recd = apnsStream.Read(buffer, 0, buffer.Length);
}
catch (Exception ex) {
   recd = 0;
}

Original comment by mac.alb...@gmail.com on 17 Dec 2011 at 8:16

GoogleCodeExporter commented 8 years ago
Hi All,

        Feedback server is return always recd is 0, if anyone can resolve this issue please let me know.

Original comment by mahesh.s...@gmail.com on 28 Jan 2015 at 6:21